IRGen: Outline by-address SIL enum instructions

Use a heuristic to decide when to outline indirect enum operations.
This commit is contained in:
Arnold Schwaighofer
2024-01-22 11:59:47 -08:00
parent a48dc87f86
commit 49e8ffb735
12 changed files with 373 additions and 25 deletions

View File

@@ -230,6 +230,7 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
EnableValueNames = opts.shouldProvideValueNames();
VoidTy = llvm::Type::getVoidTy(getLLVMContext());
PtrTy = llvm::PointerType::getUnqual(getLLVMContext());
Int1Ty = llvm::Type::getInt1Ty(getLLVMContext());
Int8Ty = llvm::Type::getInt8Ty(getLLVMContext());
Int16Ty = llvm::Type::getInt16Ty(getLLVMContext());