1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Optimization phases for LLVM upgrade

This commit is contained in:
Brian Fiete 2024-05-05 12:26:21 -04:00
parent 72bce05103
commit d5b0e6d06d
5 changed files with 388 additions and 525 deletions

View file

@ -21,6 +21,7 @@ namespace llvm
class Module;
class LLVMContext;
class TargetMachine;
class Triple;
};
NS_BF_BEGIN
@ -208,6 +209,8 @@ public:
BfIRTypedValue GetAlignedPtr(const BfIRTypedValue& val);
llvm::Value* DoCheckedIntrinsic(llvm::Intrinsic::ID intrin, llvm::Value* lhs, llvm::Value* rhs, bool useAsm);
void RunOptimizationPipeline(const llvm::Triple& targetTriple);
public:
BfIRCodeGen();
~BfIRCodeGen();