LLVM: include/llvm/SandboxIR/Function.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9#ifndef LLVM_SANDBOXIR_FUNCTION_H
10#define LLVM_SANDBOXIR_FUNCTION_H
11
15
17
19 GlobalObject, llvm::GlobalObject> {
20
21 struct LLVMBBToBB {
26 }
27 };
28
32
33public:
34
38
42
47
50
53 LLVMBBToBB BBGetter(Ctx);
55 }
57 LLVMBBToBB BBGetter(Ctx);
59 }
61
62
64
65
66
67
68
69
71
72#ifndef NDEBUG
78#endif
79};
80
81}
82
83#endif
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
#define LLVM_ABI_FOR_TEST
This class represents an incoming formal argument to a Function.
LLVM Basic Block Representation.
This class implements an extremely fast bulk output stream that can only output to a stream.
Argument of a sandboxir::Function.
Argument * getArg(unsigned Idx) const
Definition Function.h:43
Module * getParent()
Definition Function.h:39
LLVM_ABI FunctionType * getFunctionType() const
iterator begin() const
Definition Function.h:52
LLVM_ABI_FOR_TEST void dumpOS(raw_ostream &OS) const final
LLVM_ABI void setAlignment(MaybeAlign Align)
Sets the alignment attribute of the Function.
LLVM_ABI_FOR_TEST void dumpNameAndArgs(raw_ostream &OS) const
size_t arg_size() const
Definition Function.h:48
MaybeAlign getAlign() const
Returns the alignment of the given function.
Definition Function.h:63
friend class Context
Definition Function.h:31
bool arg_empty() const
Definition Function.h:49
void verify() const final
Should crash if there is something wrong with the instruction.
Definition Function.h:73
static bool classof(const sandboxir::Value *From)
For isa/dyn_cast.
Definition Function.h:35
mapped_iterator< llvm::Function::iterator, LLVMBBToBB > iterator
Definition Function.h:51
iterator end() const
Definition Function.h:56
GlobalWithNodeAPI(Value::ClassID ID, llvm::GlobalObject *C, Context &Ctx)
In SandboxIR the Module is mainly used to access the list of global objects.
A SandboxIR Value has users. This is the base class.
llvm::Value * Val
The LLVM Value that corresponds to this SandboxIR Value.
ClassID getSubclassID() const
Context & Ctx
All values point to the context.
BasicBlock(llvm::BasicBlock *BB, Context &SBCtx)
bool isa(const From &Val)
isa - Return true if the parameter to the template is an instance of one of the template type argu...
decltype(auto) cast(const From &Val)
cast - Return the argument parameter cast to the specified type.
This struct is a compact representation of a valid (non-zero power of two) alignment.
This struct is a compact representation of a valid (power of two) or undefined (0) alignment.