mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Added a 'cast' intrinsic
This commit is contained in:
parent
660e7d8125
commit
1f20d76f94
14 changed files with 75 additions and 22 deletions
|
@ -13,7 +13,14 @@ enum BfIRCodeGenEntryKind
|
|||
BfIRCodeGenEntryKind_LLVMType,
|
||||
BfIRCodeGenEntryKind_LLVMBasicBlock,
|
||||
BfIRCodeGenEntryKind_LLVMMetadata,
|
||||
BfIRCodeGenEntryKind_FakeIntrinsic,
|
||||
BfIRCodeGenEntryKind_IntrinsicData,
|
||||
};
|
||||
|
||||
class BfIRIntrinsicData
|
||||
{
|
||||
public:
|
||||
BfIRIntrinsic mIntrinsic;
|
||||
llvm::Type* mReturnType;
|
||||
};
|
||||
|
||||
struct BfIRCodeGenEntry
|
||||
|
@ -25,7 +32,7 @@ struct BfIRCodeGenEntry
|
|||
llvm::Type* mLLVMType;
|
||||
llvm::BasicBlock* mLLVMBlock;
|
||||
llvm::MDNode* mLLVMMetadata;
|
||||
BfIRIntrinsic mIntrinsic;
|
||||
BfIRIntrinsicData* mIntrinsicData;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -54,6 +61,7 @@ class BfIRCodeGen : public BfIRCodeGenBase
|
|||
public:
|
||||
BfIRBuilder* mBfIRBuilder;
|
||||
|
||||
BumpAllocator mAlloc;
|
||||
BfTargetTriple mTargetTriple;
|
||||
String mModuleName;
|
||||
llvm::LLVMContext* mLLVMContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue