Displaying 2 results from an estimated 2 matches for "mdnode1".
Did you mean:
mdnode
2011 Oct 17
2
[LLVMdev] Variable name from metadata
Hi All,
Can we extract name of variable name from "MDNode" ?
1. Neither temp_MDNode->getName() nor temp_MDNode->getValueName() give me "global_int" which is name of a variable.
2. I tried below ways as well.
DIVariable DV(mdnode1);
Value *v = mdnode1->getOperand(0);//gives add 0x69
3. I have written below code to reach till variable name.
LLVMIname is
const CallInst *CI = dyn_cast<CallInst>(Insn);
const Value* LLVMIValue = cast<CallInst>(Insn)->getCalledValue();
...
2011 Oct 17
0
[LLVMdev] Variable name from metadata
...Subject: [LLVMdev] Variable name from metadata
Hi All,
Can we extract name of variable name from "MDNode" ?
1. Neither temp_MDNode->getName() nor temp_MDNode->getValueName() give me "global_int" which is name of a variable.
2. I tried below ways as well.
DIVariable DV(mdnode1);
Value *v = mdnode1->getOperand(0);//gives add 0x69
3. I have written below code to reach till variable name.
LLVMIname is
const CallInst *CI = dyn_cast<CallInst>(Insn);
const Value* LLVMIValue = cast<CallInst>(Insn)->getCalledValue();
...