2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

compiler: emit verbose assembly via ARTIQ_DUMP_ASM.

This commit is contained in:
whitequark 2016-04-01 09:34:51 +00:00
parent d9dd7df3b2
commit df8018f0be

View File

@ -83,9 +83,11 @@ class Target:
def target_machine(self):
lltarget = llvm.Target.from_triple(self.triple)
return lltarget.create_target_machine(
llmachine = lltarget.create_target_machine(
features=",".join(["+{}".format(f) for f in self.features]),
reloc="pic", codemodel="default")
llmachine.set_verbose(True)
return llmachine
def optimize(self, llmodule):
llmachine = self.target_machine()