search for: fucnction

Displaying 4 results from an estimated 4 matches for "fucnction".

Did you mean: ffunction
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::vector<Value*> in...
2023 Mar 16
4
Trying to learn how to write an "advanced" function
I am trying to understand how to write an "advanced" function. To do so, I am examining the lm fucnction, a portion of which is pasted below. I am unable to understand what match.call or match does, and several other parts of lm, even when I read the help page for match.call or match. (1) can someone point me to an explanation of match.call or match that can be understood by the uninitiated? (2) c...
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::getGetElementPtr( (Constant*) s...
2004 Jun 17
0
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
...ere 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 GlobalVariable(C-...