34 if (NumLocations == 0)
37 assert(LocID < NumLocations &&
"Invalid location ID!");
38 return Locations[LocID];
54 if (!Array)
return nullptr;
57 for (
unsigned i = 0; Array[i].Name; ++i)
58 (*Map)[Array[i].Name] = Array+i;
const LibCallFunctionInfo * getFunctionInfo(const Function *F) const
getFunctionInfo - Return the LibCallFunctionInfo object corresponding to the specified function if we...
StringSwitch & Case(const char(&S)[N], const T &Value)
StringRef getName() const
Return a constant reference to the value's name.
bool canSimplifyInvokeNoUnwind(const Function *F)
LibCallFunctionInfo - Each record in the array of FunctionInfo structs records the behavior of one li...
A switch()-like statement whose cases are string literals.
EHPersonality classifyEHPersonality(const Value *Pers)
See if the given exception handling personality function is one that we understand.
virtual const LibCallFunctionInfo * getFunctionInfoArray() const =0
getFunctionInfoArray - Return an array of descriptors that describe the set of libcalls represented b...
ValueTy lookup(StringRef Key) const
lookup - Return the entry for the specified key, or a default constructed value if no such entry exis...
Value * stripPointerCasts()
Strip off pointer casts, all-zero GEPs, and aliases.
R Default(const T &Value) const
StringMap - This is an unconventional map that is specialized for handling keys that are "strings"...
static StringMap< const LibCallFunctionInfo * > * getMap(void *Ptr)
This impl pointer in ~LibCallInfo is actually a StringMap.
LLVM_ATTRIBUTE_UNUSED_RESULT std::enable_if< !is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
Constant * getPersonalityFn() const
bool isAsynchronousEHPersonality(EHPersonality Pers)
Returns true if this personality function catches asynchronous exceptions.
LLVM Value Representation.
const LibCallLocationInfo & getLocationInfo(unsigned LocID) const
getLocationInfo - Return information about the specified LocationID.
LibCallLocationInfo - This struct describes a set of memory locations that are accessed by libcalls...