1
0
Fork 0
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:
Brian Fiete 2020-06-13 08:38:13 -07:00
parent 1d44e232ca
commit cf6d8a3a99
3 changed files with 59 additions and 9 deletions

View file

@ -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();