clspv
clspv copied to clipboard
add support for load/store from gep cst expr
also fix gep from bitcast cst expr
I wonder whether we should simply lower all ConstantExpr to instructions (using ConstantExpr::getAsInstruction). That pass could get run (probably twice) and it would prevent patching up these in an ad hoc manner.
I wonder whether we should simply lower all ConstantExpr to instructions (using ConstantExpr::getAsInstruction). That pass could get run (probably twice) and it would prevent patching up these in an ad hoc manner.
Sure, sounds like a good idea, I'll do that.