clspv icon indicating copy to clipboard operation
clspv copied to clipboard

add support for load/store from gep cst expr

Open rjodinchr opened this issue 3 years ago • 2 comments

also fix gep from bitcast cst expr

rjodinchr avatar Aug 04 '22 08:08 rjodinchr

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.

alan-baker avatar Aug 09 '22 15:08 alan-baker

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.

rjodinchr avatar Aug 09 '22 18:08 rjodinchr