forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 3 additions and 1 deletions

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()