[LLVMbugs] [Bug 8999] New: How to find out the target triple and target data of the host machine via C bindings?
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 18 03:15:23 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=8999
Summary: How to find out the target triple and target data of
the host machine via C bindings?
Product: Documentation
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: General docs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: llvm at henning-thielemann.de
CC: llvmbugs at cs.uiuc.edu, llvm at henning-thielemann.de
Please describe how to find out the information needed to let the optimizer
work correct and adapted to the host machine when run via the C bindings to
LLVM. I'll attach a C program that creates a small function, that shall be run
in the JIT. As far as I understand, if I do not tell the target data to
PassManager, then I get only generic optimizations. If I set the target data to
something invalid (as in the outcommented AddTargetData) the optimizer even
performs silently optimizations that are invalid for the host machine. (See
http://llvm.org/bugs/show_bug.cgi?id=6394 for details.) Thus: How do I tell the
LLVM optimizer to optimize with respect to the host, where I like to run the
function in the JIT later?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list