[llvm] [SandboxIR] Implement BitCastInst (PR #101227)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 14:58:01 PDT 2024
================
@@ -1386,6 +1390,26 @@ class PtrToIntInst final : public CastInst {
#endif // NDEBUG
};
+class BitCastInst : public CastInst {
+public:
+ static Value *create(Value *Src, Type *DestTy, BBIterator WhereIt,
+ BasicBlock *WhereBB, Context &Ctx,
+ const Twine &Name = "");
+ static Value *create(Value *Src, Type *DestTy, Instruction *InsertBefore,
+ Context &Ctx, const Twine &Name = "");
+ static Value *create(Value *Src, Type *DestTy, BasicBlock *InsertAtEnd,
+ Context &Ctx, const Twine &Name = "");
+
+ static bool classof(const Value *From) {
+ return isa<Instruction>(From) &&
----------------
aeubanks wrote:
oh I see, I keep getting confused between LLVM IR and SandboxIR, I haven't spent long enough staring at SandboxIR code to get the namespaces straight in my head
I do slightly prefer tschuett's original suggestion over the current version, it's a bit less redundant even though it's an extra line
https://github.com/llvm/llvm-project/pull/101227
More information about the llvm-commits
mailing list