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:
parent
72bce05103
commit
d5b0e6d06d
5 changed files with 388 additions and 525 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue