search for: inst2string

Displaying 3 results from an estimated 3 matches for "inst2string".

Did you mean: insn_string
2004 Jun 17
4
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
How is this done? Everything logical I have tried has failed, here was one attempt: Constant *C = (Constant*) ConstantArray::get(inst2string(I)); //fucnction defined elsewhere //generates a correct Global string GlobalVariable *str = new GlobalVariable(C->getType(), true, GlobalValue::InternalLinkage, C, mkStrName( strNumber++ ), &M); std::vector<Value*> params; //params to a CallInst std::vecto...
2004 Jun 17
0
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
On Thu, 17 Jun 2004, Patrick Meredith wrote: > How is this done? Everything logical I have tried has failed, here was > one attempt: > > Constant *C = (Constant*) ConstantArray::get(inst2string(I)); //fucnction defined elsewhere > > //generates a correct Global string > GlobalVariable *str = new GlobalVariable(C->getType(), true, > GlobalValue::InternalLinkage, > C, mkStrName( strNumber++ ), &M); ... > Constant *gep = ConstantExpr::getGetElement...
2004 Jun 17
0
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
...tried has failed, here was > one attempt: Can you give a few more details about what you are doing? Are you running the verifier before writing out bytecode? Is your code operating as a pass? Can you send a dump of the generated LLVM code? > Constant *C = (Constant*) ConstantArray::get(inst2string(I)); //fucnction defined elsewhere One comment about this code: you don't need to have all of these casts. In particular, above you don't need the (Constant*) cast, and you don't need the (Value*) casts below. > //generates a correct Global string > GlobalVariable *str = new...