[LLVMbugs] [Bug 11017] New: Setting target data layout and target triple in llvm-ld and llc
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Sep 26 15:03:26 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11017
Summary: Setting target data layout and target triple in
llvm-ld and llc
Product: compiler-rt
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: compiler-rt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: s3734770 at mail.zih.tu-dresden.de
CC: llvmbugs at cs.uiuc.edu
I'm writing a compiler that outputs llvm-ir and uses the command line tools to
generate executables. I'm using llvm-ld for standalone executables and llc for
shared libraries. The compiler should work under windows, linux and mac.
The actual problem is that i have to set the target data layout for the bitcode
file. But the bitcode file is platform independend except the one line
containing the target data layout. An other problem is to find out the
correct/current data layout or target triple.
So my suggestion is to add command line parameters to llvm-ld and llc to set
the target triple and the target data layout. I also need some
helpers/placeholders like "-p:$bitwidth:$bitwidth-" to not have to parse 'uname
-a' (which does not exist under windows) each time i call the llvm-ld or llc.
So I would be delighted if this gets implemented.
--
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