40 if (AllowNullOp && !Op)
44 if (
auto *V = dyn_cast<ValueAsMetadata>(MD))
48 assert((isa<DbgLabelInst>(
this)
50 &&
"DbgValueInst Expected an empty MDNode");
57 return Fragment->SizeInBits;
74 const char *
const *Low = NameTable.
begin();
75 const char *
const *
High = NameTable.
end();
76 const char *
const *LastLow = Low;
77 while (CmpEnd < Name.
size() && High - Low > 0) {
79 CmpEnd = Name.
find(
'.', CmpStart + 1);
81 auto Cmp = [CmpStart, CmpEnd](
const char *LHS,
const char *RHS) {
82 return strncmp(LHS + CmpStart, RHS + CmpStart, CmpEnd - CmpStart) < 0;
85 std::tie(Low, High) = std::equal_range(Low, High, Name.
data(), Cmp);
90 if (LastLow == NameTable.
end())
93 if (Name == NameFound ||
95 return LastLow - NameTable.
begin();
113 if (!MD || !isa<MDString>(MD))
115 StringRef RoundingArg = cast<MDString>(MD)->getString();
120 .Case(
"round.dynamic", rmDynamic)
121 .
Case(
"round.tonearest", rmToNearest)
122 .
Case(
"round.downward", rmDownward)
123 .
Case(
"round.upward", rmUpward)
124 .
Case(
"round.towardzero", rmTowardZero)
133 if (!MD || !isa<MDString>(MD))
135 StringRef ExceptionArg = cast<MDString>(MD)->getString();
137 .Case(
"fpexcept.ignore", ebIgnore)
138 .
Case(
"fpexcept.maytrap", ebMayTrap)
139 .
Case(
"fpexcept.strict", ebStrict)
147 case Intrinsic::experimental_constrained_sqrt:
148 case Intrinsic::experimental_constrained_sin:
149 case Intrinsic::experimental_constrained_cos:
150 case Intrinsic::experimental_constrained_exp:
151 case Intrinsic::experimental_constrained_exp2:
152 case Intrinsic::experimental_constrained_log:
153 case Intrinsic::experimental_constrained_log10:
154 case Intrinsic::experimental_constrained_log2:
155 case Intrinsic::experimental_constrained_rint:
156 case Intrinsic::experimental_constrained_nearbyint:
165 case Intrinsic::experimental_constrained_fma:
Compute iterated dominance frontiers using a linear time algorithm.
A Module instance is used to store all the information related to an LLVM module. ...
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
static IntegerType * getInt64Ty(LLVMContext &C)
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
LLVMContext & getContext() const
Get the global data context.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE R Default(T Value)
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool startswith(StringRef Prefix) const
Check if this string starts with the given Prefix.
RoundingMode getRoundingMode() const
MDNode * getMetadata(unsigned KindID) const
Get the metadata of given kind attached to this Instruction.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
ExceptionBehavior getExceptionBehavior() const
A switch()-like statement whose cases are string literals.
unsigned getNumOperands() const
Value * getVariableLocation(bool AllowNullOp=true) const
Get the location corresponding to the variable referenced by the debug info intrinsic.
This is an important class for using LLVM in a threaded context.
This file contains the declarations for the subclasses of Constant, which represent the different fla...
DILocalVariable * getVariable() const
DIExpression * getExpression() const
static bool classof(const IntrinsicInst *I)
Optional< uint64_t > getFragmentSizeInBits() const
Get the size (in bits) of the variable, or fragment of the variable that is described.
Intrinsic::ID getIntrinsicID() const
Return the intrinsic ID of this intrinsic.
Optional< uint64_t > getSizeInBits() const
Determines the size of the variable's type.
Module.h This file contains the declarations for the Module class.
static Constant * get(Type *Ty, uint64_t V, bool isSigned=false)
If Ty is a vector type, return a Constant with a splat of the given value.
const Module * getModule() const
Return the module owning the function this instruction belongs to or nullptr it the function does not...
LLVM_ATTRIBUTE_ALWAYS_INLINE StringSwitch & Case(StringLiteral S, T Value)
unsigned getNumArgOperands() const
Return the number of call arguments.
LLVM_NODISCARD std::enable_if<!is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Value * getArgOperand(unsigned i) const
getArgOperand/setArgOperand - Return/set the i-th call argument.
LLVM Value Representation.
StringRef - Represent a constant reference to a string, i.e.
int lookupLLVMIntrinsicByName(ArrayRef< const char *> NameTable, StringRef Name)
Looks up Name in NameTable via binary search.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t find(char C, size_t From=0) const
Search for the first character C in the string.