Displaying 1 result from an estimated 1 matches for "host_8h_source".
2016 Jan 15
2
How to get generic datalayout and "target-cpu" attribute
Hi,
My compiler emits LLVM IR in text form and passes it to the opt and llc
executables.
The datalayout and triple are currently determined by running "clang -x
c /dev/null -emit-llvm -S -o -" and parsing the output. This works fine
because clang seems to choose a generic version of the CPU it is running
on, and this is exactly what we want. Still this solution is hacky and