Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseros committed Sep 19, 2024
1 parent 028bac2 commit ab8cecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/amd/backend/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def make_llir(src, metadata, options):
context = llvm.context()
llvm_mod = llvm.to_module(mod, context)
amd.attach_target_triple(llvm_mod)
llvm.attach_datalayout(llvm_mod, amd.TARGET_TRIPLE, options.arch, '')

# Set various control constants on the LLVM module so that device
# libraries can resolve references to them.
Expand All @@ -258,7 +259,6 @@ def make_llir(src, metadata, options):
paths = [path for (name, path) in options.extern_libs if amd.need_extern_lib(llvm_mod, name)]
llvm.link_extern_libs(llvm_mod, paths)

llvm.attach_datalayout(llvm_mod, amd.TARGET_TRIPLE, options.arch, '')
llvm.optimize_module(llvm_mod, llvm.OPTIMIZE_O3, options.arch, '', [], options.enable_fp_fusion)

# Get some metadata
Expand Down

0 comments on commit ab8cecb

Please sign in to comment.