Displaying 1 result from an estimated 1 matches for "mtech2".
2015 Nov 26
4
Creating/Deleting a new instruction from LLVM IR
...to insert this to LLVM IR? ( I saw the code snippet in LLVM Programming
manual, I couldn't understand it. Any examples on doing the same? )
I tried to delete an instruction using:
i->eraseFromParent();
But it throws the following error/exception:
*opt -load /home/mtech2/Documents/llvm/build/Debug+Asserts/lib/CSE.so -CSE
<test.ll> /dev/null*
*opt: /home/mtech2/Documents/llvm/llvm/include/llvm/Support/Casting.h:81:
static bool llvm::isa_impl_cl<To, From*>::doit(const From*) [with To =
llvm::Instruction; From = llvm::Instruction]: Assertion `Val &&...