[llvm] [SandboxIR] Implement ConstantInt (PR #104639)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 13:31:10 PDT 2024


================
@@ -515,6 +516,41 @@ class Constant : public sandboxir::User {
 #endif
 };
 
+class ConstantInt : public Constant {
+  ConstantInt(llvm::ConstantInt *C, sandboxir::Context &Ctx)
+      : Constant(ClassID::ConstantInt, C, Ctx) {}
+  friend class Context; // For constructor.
+
+  Use getOperandUseInternal(unsigned OpIdx, bool Verify) const final {
----------------
aeubanks wrote:

unfortunate LLVM class hierarchy

https://github.com/llvm/llvm-project/pull/104639


More information about the llvm-commits mailing list