search for: blocktostor

Displaying 2 results from an estimated 2 matches for "blocktostor".

Did you mean: blocktostore
2013 Nov 02
2
[LLVMdev] Indirect branching to BasicBlock
...ncing" the variable. Is this possible? I tried creating an instance of AllocaInst but I'm not quite sure which type to use. Using block->getType() results in a segmentation fault (Cannot allocate unsized type %myVar = alloca label). Code might help: AllocaInst *myVar = new AllocaInst(blockToStore.getType(), "myVar", curBlock); new StoreInst(&blockToStore, myVar); I guess I should use an integer type to store the address but then LLVM complains about type mismatch as I don not know how to cast the block's label to an integer. I am not sure where to look this up, might be...
2013 Nov 02
0
[LLVMdev] Indirect branching to BasicBlock
...s this possible? I tried creating an instance of AllocaInst but I'm not > quite sure which type to use. Using block->getType() results in a > segmentation fault (Cannot allocate unsized type %myVar = alloca label). > > Code might help: > > AllocaInst *myVar = new AllocaInst(blockToStore.getType(), "myVar", > curBlock); > new StoreInst(&blockToStore, myVar); > > I guess I should use an integer type to store the address but then LLVM > complains about type mismatch as I don not know how to cast the block's > label to an integer. I am not sure whe...