search for: mapvaluetooriginal

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

2010 Mar 19
3
[LLVMdev] Getting the DSNode from a Pool Descriptor?
...t need > to get the original function, and then use the DSNode from that function. FuncInfo > contains the information if a function is a clone and what the original function is. > > If you want to find the corresponding DSNode for some instruction, you must call > > PA::FuncInfo::MapValueToOriginal( value ) > > Then you can get the DSNode from the DSGraph: > > llvm::DSNodeHandle handle = _dsg->getNodeForValue(origVal); > DSNode *node = handle.getNode(); > > origVal is obtained by calling MapValueToOriginal on a cloned Value. > > All those mappings are...
2010 Mar 19
0
[LLVMdev] Getting the DSNode from a Pool Descriptor?
...r function clones, you first need to get the original function, and then use the DSNode from that function. FuncInfo contains the information if a function is a clone and what the original function is. If you want to find the corresponding DSNode for some instruction, you must call PA::FuncInfo::MapValueToOriginal( value ) Then you can get the DSNode from the DSGraph: llvm::DSNodeHandle handle = _dsg->getNodeForValue(origVal); DSNode *node = handle.getNode(); origVal is obtained by calling MapValueToOriginal on a cloned Value. All those mappings are quite confusing. I've been thinking abo...
2010 Mar 19
3
[LLVMdev] Getting the DSNode from a Pool Descriptor?
Harmen, your suggestion of inverting the mapping almost worked (and Andrew was correct that the function I need is the same as the one in which poolinit appears). Unfortunately, it appears that this mapping only considers the original function and not any of its clones. Since the pool descriptor in question may very well only exist in a clone, I can't use this. Is there another way?
2010 Mar 19
0
[LLVMdev] Getting the DSNode from a Pool Descriptor?
...he original function, and then use the DSNode from that function. FuncInfo >> contains the information if a function is a clone and what the original function is. >> >> If you want to find the corresponding DSNode for some instruction, you must call >> >> PA::FuncInfo::MapValueToOriginal( value ) >> >> Then you can get the DSNode from the DSGraph: >> >> llvm::DSNodeHandle handle = _dsg->getNodeForValue(origVal); >> DSNode *node = handle.getNode(); >> >> origVal is obtained by calling MapValueToOriginal on a cloned Value. >...