search for: _here__

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

2015 Mar 17
2
[LLVMdev] casting Constant * to value *?
...ces); it can be used to initialize e.g. a new instruction like: StoreInst* void_119 = new StoreInst(const_float_102, const_ptr_103, false, label_entry_113); But how about replacing the operand of an already existing instruction using a Constant *? Instruction->setOperand(1,__needs_a_value*_here__); Thx Alex
2015 Mar 18
5
[LLVMdev] casting Constant * to value *?
...gt;> StoreInst* void_119 = new StoreInst(const_float_102, const_ptr_103, >> false, label_entry_113); >> >> >> But how about replacing the operand of an already existing instruction >> using a Constant *? >> >> Instruction->setOperand(1,__needs_a_value*_here__); > > If you look at the inheritance tree, you'll see that an llvm::Constant > is a subclass of llvm::Value. Therefore, you can use an llvm::Constant > anywhere in which an llvm::Value is needed. > > To look at the inheritance tree, look at the LLVM doxygen documentation. &...