File indexing completed on 2026-05-10 08:44:25
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLVM_SANDBOXIR_ARGUMENT_H
0010 #define LLVM_SANDBOXIR_ARGUMENT_H
0011
0012 #include "llvm/IR/Argument.h"
0013 #include "llvm/SandboxIR/Value.h"
0014
0015 namespace llvm::sandboxir {
0016
0017
0018 class Argument : public sandboxir::Value {
0019 Argument(llvm::Argument *Arg, sandboxir::Context &Ctx)
0020 : Value(ClassID::Argument, Arg, Ctx) {}
0021 friend class Context;
0022
0023 public:
0024 static bool classof(const sandboxir::Value *From) {
0025 return From->getSubclassID() == ClassID::Argument;
0026 }
0027 #ifndef NDEBUG
0028 void verify() const final {
0029 assert(isa<llvm::Argument>(Val) && "Expected Argument!");
0030 }
0031 void printAsOperand(raw_ostream &OS) const;
0032 void dumpOS(raw_ostream &OS) const final;
0033 #endif
0034 };
0035
0036 }
0037
0038 #endif