hotfix: don't use noqa: E702 that's just dumb

This commit is contained in:
George Hotz
2024-01-24 20:01:00 -08:00
parent b92945c98d
commit aa0d1b6330
2 changed files with 6 additions and 3 deletions

View File

@@ -26,7 +26,10 @@ class LLVMProgram:
class LLVMDevice(Compiled):
def __init__(self, device:str):
llvm.initialize(); llvm.initialize_native_target(); llvm.initialize_native_asmprinter(); llvm.initialize_native_asmparser() # noqa: E702
llvm.initialize()
llvm.initialize_native_target()
llvm.initialize_native_asmprinter()
llvm.initialize_native_asmparser()
self.optimizer: llvm.passmanagers.ModulePassManager = llvm.create_module_pass_manager()
# this opt actually can change things. ex: opt=3 means no FMA, opt=2 means FMA
self.target_machine: llvm.targets.TargetMachine = llvm.Target.from_triple(llvm.get_process_triple()).create_target_machine(opt=2)