mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Added memcpy opt for large arrays
This commit is contained in:
parent
1d44e232ca
commit
cf6d8a3a99
3 changed files with 59 additions and 9 deletions
|
@ -76,7 +76,8 @@ public:
|
|||
llvm::InlineAsm* mAsmObjectCheckAsm;
|
||||
llvm::DebugLoc mDebugLoc;
|
||||
bool mHasDebugLoc;
|
||||
bool mIsCodeView;
|
||||
bool mIsCodeView;
|
||||
int mConstArrayIdx;
|
||||
|
||||
int mCmdCount;
|
||||
Dictionary<int, BfIRCodeGenEntry> mResults;
|
||||
|
@ -96,6 +97,7 @@ public:
|
|||
void SetResult(int id, llvm::MDNode* value);
|
||||
void CreateMemSet(llvm::Value* addr, llvm::Value* val, llvm::Value* size, int alignment, bool isVolatile = false);
|
||||
void AddNop();
|
||||
bool TryMemCpy(llvm::Value* ptr, llvm::Value* val);
|
||||
|
||||
public:
|
||||
BfIRCodeGen();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue