search for: a0d7acb06af9665b54fc74480e2c6c707

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

2010 May 28
0
[LLVMdev] how to get TargetData?
...you want. TD = TM->getTargetData(); [...] // Free TM delete TM; ==== END CODE SNIPPET ==== For your case, you should be able to find TripleStr and FeatureStr in somewhere. And also there's a constructor in TargetData ( http://llvm.org/doxygen/classllvm_1_1TargetData.html#a0d7acb06af9665b54fc74480e2c6c707) takeing a string "TargetDescription". The string specifies the data layout of a target and its format is described here http://llvm.org/docs/LangRef.html#datalayout. Thus, if you are developing a customized target and/or you are really know the data layout specification about your target...
2010 May 28
4
[LLVMdev] how to get TargetData?
Dear all I am trying to get the size of an LLVM pointer type. getPrimitiveSizeInBits() returns 0 for it and the documentation for isSized() suggest to use TargetData. I figured out from Kaleidoscope example that one can get a pointer to TagetData object through the execution engine but it seems to be an overkill. What is the right way to do it? Best regards, Victor -------------- next part