15#include "llvm/Config/llvm-config.h"
53 DenseMap<const Value *, std::pair<unsigned, bool>> IDs;
54 unsigned LastGlobalValueID = 0;
58 bool isGlobalValue(
unsigned ID)
const {
59 return ID <= LastGlobalValueID;
62 unsigned size()
const {
return IDs.
size(); }
69 void index(
const Value *
V) {
71 unsigned ID = IDs.
size() + 1;
79 if (OM.lookup(
V).first)
83 if (
C->getNumOperands()) {
84 for (
const Value *
Op :
C->operands())
88 if (CE->getOpcode() == Instruction::ShuffleVector)
89 orderValue(CE->getShuffleMaskForBitcode(), OM);
119 OM.LastGlobalValueID = OM.size();
121 auto orderConstantValue = [&OM](
const Value *
V) {
127 if (
F.isDeclaration())
139 auto OrderConstantFromMetadata = [&](
Metadata *MD) {
141 orderConstantValue(VAM->getValue());
143 for (
const auto *VAM : AL->getArgs())
144 orderConstantValue(VAM->getValue());
149 OrderConstantFromMetadata(DVR.getRawLocation());
150 if (DVR.isDbgAssign())
151 OrderConstantFromMetadata(DVR.getRawAddress());
154 for (
const Value *
V :
I.operands()) {
156 OrderConstantFromMetadata(MAV->getMetadata());
164 for (
const Value *
Op :
I.operands())
165 orderConstantValue(
Op);
167 orderValue(SVI->getShuffleMaskForBitcode(), OM);
169 for (
const auto &Case :
SI->cases())
179 unsigned ID,
const OrderMap &OM,
182 using Entry = std::pair<const Use *, unsigned>;
184 for (
const Use &U :
V->uses())
186 if (OM.lookup(U.getUser()).first)
187 List.
push_back(std::make_pair(&U, List.size()));
193 bool IsGlobalValue = OM.isGlobalValue(ID);
194 llvm::sort(List, [&](
const Entry &L,
const Entry &R) {
195 const Use *LU = L.first;
196 const Use *RU = R.first;
200 auto LID = OM.lookup(LU->getUser()).first;
201 auto RID = OM.lookup(RU->getUser()).first;
221 return LU->getOperandNo() < RU->getOperandNo();
222 return LU->getOperandNo() > RU->getOperandNo();
230 Stack.emplace_back(
V,
F, List.size());
231 assert(List.size() == Stack.back().Shuffle.size() &&
"Wrong size");
232 for (
size_t I = 0,
E = List.size();
I !=
E; ++
I)
233 Stack.back().Shuffle[
I] = List[
I].second;
238 if (!
V->hasUseList())
241 auto &IDPair = OM[
V];
242 assert(IDPair.first &&
"Unmapped value");
248 IDPair.second =
true;
249 if (!
V->use_empty() && std::next(
V->use_begin()) !=
V->use_end())
254 if (
C->getNumOperands()) {
255 for (
const Value *
Op :
C->operands())
259 if (CE->getOpcode() == Instruction::ShuffleVector)
280 auto PredictValueOrderFromMetadata = [&](
Metadata *MD) {
284 for (
const auto *VAM : AL->getArgs())
288 if (
F.isDeclaration())
297 PredictValueOrderFromMetadata(DVR.getRawLocation());
298 if (DVR.isDbgAssign())
299 PredictValueOrderFromMetadata(DVR.getRawAddress());
301 for (
const Value *
Op :
I.operands()) {
305 PredictValueOrderFromMetadata(MAV->getMetadata());
326 if (
G.hasInitializer())
333 for (
const Use &U :
F.operands())
341 return V.first->getType()->isIntOrIntVectorTy();
345 bool ShouldPreserveUseListOrder)
346 : ShouldPreserveUseListOrder(ShouldPreserveUseListOrder) {
347 if (ShouldPreserveUseListOrder)
353 EnumerateType(GV.getValueType());
359 EnumerateType(
F.getFunctionType());
360 EnumerateAttributes(
F.getAttributes());
366 EnumerateType(GA.getValueType());
371 EnumerateValue(&GIF);
372 EnumerateType(GIF.getValueType());
376 unsigned FirstConstant = Values.size();
380 if (GV.hasInitializer())
381 EnumerateValue(GV.getInitializer());
382 if (GV.hasAttributes())
383 EnumerateAttributes(GV.getAttributesAsList(AttributeList::FunctionIndex));
388 EnumerateValue(GA.getAliasee());
392 EnumerateValue(GIF.getResolver());
396 for (
const Use &U :
F.operands())
397 EnumerateValue(U.get());
407 EnumerateValueSymbolTable(M.getValueSymbolTable());
408 EnumerateNamedMetadata(M);
413 GV.getAllMetadata(MDs);
414 for (const auto &I : MDs)
418 EnumerateMetadata(nullptr, I.second);
424 EnumerateType(
A.getType());
428 F.getAllMetadata(MDs);
429 for (
const auto &
I : MDs)
430 EnumerateMetadata(
F.isDeclaration() ?
nullptr : &
F,
I.second);
437 auto EnumerateNonLocalValuesFromMetadata = [&](
Metadata *MD) {
438 assert(MD &&
"Metadata unexpectedly null");
440 for (
const auto *VAM : AL->getArgs()) {
442 EnumerateMetadata(&
F, VAM);
448 EnumerateMetadata(&
F, MD);
453 EnumerateMetadata(&
F, DLR->getLabel());
454 EnumerateMetadata(&
F, &*DLR->getDebugLoc());
469 for (
const Use &
Op :
I.operands()) {
472 EnumerateOperandType(
Op);
476 EnumerateNonLocalValuesFromMetadata(MD->getMetadata());
479 EnumerateType(SVI->getShuffleMaskForBitcode()->getType());
481 EnumerateType(
GEP->getSourceElementType());
483 EnumerateType(AI->getAllocatedType());
484 EnumerateType(
I.getType());
486 EnumerateAttributes(
Call->getAttributes());
487 EnumerateType(
Call->getFunctionType());
492 I.getAllMetadataOtherThanDebugLoc(MDs);
493 for (
const auto &MD : MDs)
494 EnumerateMetadata(&
F, MD.second);
500 EnumerateMetadata(&
F,
Op);
505 GIF.getAllMetadata(MDs);
506 for (const auto &I : MDs)
507 EnumerateMetadata(nullptr, I.second);
511 OptimizeConstants(FirstConstant, Values.size());
519 assert(
I != InstructionMap.end() &&
"Instruction is not mapped!");
524 unsigned ComdatID = Comdats.idFor(
C);
525 assert(ComdatID &&
"Comdat not found!");
530 InstructionMap[
I] = InstructionCount++;
538 assert(
I != ValueMap.end() &&
"Value not in slotcalculator!");
542#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
552 const char *Name)
const {
553 OS <<
"Map Name: " << Name <<
"\n";
554 OS <<
"Size: " << Map.size() <<
"\n";
555 for (
const auto &
I : Map) {
558 OS <<
"Value: " << V->getName();
560 OS <<
"Value: [null]\n";
564 OS <<
" Uses(" << V->getNumUses() <<
"):";
565 for (
const Use &U : V->
uses()) {
566 if (&U != &*V->use_begin())
569 OS <<
" " << U->getName();
579 const char *Name)
const {
580 OS <<
"Map Name: " << Name <<
"\n";
581 OS <<
"Size: " << Map.size() <<
"\n";
582 for (
const auto &
I : Map) {
584 OS <<
"Metadata: slot = " <<
I.second.ID <<
"\n";
585 OS <<
"Metadata: function = " <<
I.second.F <<
"\n";
592void ValueEnumerator::OptimizeConstants(
unsigned CstStart,
unsigned CstEnd) {
593 if (CstStart == CstEnd || CstStart+1 == CstEnd)
return;
595 if (ShouldPreserveUseListOrder)
600 std::stable_sort(
Values.begin() + CstStart,
Values.begin() + CstEnd,
601 [
this](
const std::pair<const Value *, unsigned> &LHS,
602 const std::pair<const Value *, unsigned> &RHS) {
604 if (LHS.first->getType() != RHS.first->getType())
605 return getTypeID(LHS.first->getType()) < getTypeID(RHS.first->getType());
607 return LHS.second > RHS.second;
613 std::stable_partition(
Values.begin() + CstStart,
Values.begin() + CstEnd,
617 for (; CstStart != CstEnd; ++CstStart)
623void ValueEnumerator::EnumerateValueSymbolTable(
const ValueSymbolTable &VST) {
624 for (
const auto &VI : VST)
625 EnumerateValue(VI.getValue());
630void ValueEnumerator::EnumerateNamedMetadata(
const Module &M) {
631 for (
const auto &
I :
M.named_metadata())
632 EnumerateNamedMDNode(&
I);
635void ValueEnumerator::EnumerateNamedMDNode(
const NamedMDNode *MD) {
637 EnumerateMetadata(
nullptr,
N);
640unsigned ValueEnumerator::getMetadataFunctionID(
const Function *
F)
const {
645 EnumerateMetadata(getMetadataFunctionID(
F), MD);
648void ValueEnumerator::EnumerateFunctionLocalMetadata(
650 EnumerateFunctionLocalMetadata(getMetadataFunctionID(&
F),
Local);
653void ValueEnumerator::EnumerateFunctionLocalListMetadata(
655 EnumerateFunctionLocalListMetadata(getMetadataFunctionID(&
F), ArgList);
658void ValueEnumerator::dropFunctionFromMetadata(
659 MetadataMapType::value_type &FirstMD) {
662 auto &
Entry = MD.second;
678 while (!Worklist.
empty()) {
683 auto MD = MetadataMap.find(
Op);
684 if (MD != MetadataMap.end())
689 FLContext->getUsedMDNodes(UsedNodes);
691 if (
auto MD = MetadataMap.find(
Op); MD != MetadataMap.end())
697void ValueEnumerator::EnumerateMetadata(
unsigned F,
const Metadata *MD) {
708 if (
const MDNode *
N = enumerateMetadataImpl(
F, MD))
713 DenseMap<const MDFunctionLocalContext *, SmallVector<const MDNode *, 0>>
715 while (!Worklist.
empty()) {
716 const MDNode *
N = Worklist.
back().first;
717 size_t &OpNum = Worklist.
back().second;
721 if (OpNum < N->getNumOperands()) {
723 N->op_begin() + OpNum,
N->op_end(),
724 [&](
const Metadata *MD) { return enumerateMetadataImpl(F, MD); });
725 if (
I !=
N->op_end()) {
727 OpNum =
I -
N->op_begin() + 1;
730 if (
Op->isDistinct() && !
N->isDistinct())
745 assert(
N->getNumOperands() == 0 &&
746 "MDFunctionLocalContext expected to have no operands");
748 auto &UsedMDNodes =
Result.first->second;
750 FLContext->getUsedMDNodes(UsedMDNodes);
751 auto *NextUsed = std::find_if(
752 UsedMDNodes.begin() + OpNum, UsedMDNodes.end(),
753 [&](
const Metadata *MD) { return enumerateMetadataImpl(F, MD); });
754 if (NextUsed != UsedMDNodes.end()) {
755 auto *
Op = *NextUsed;
756 OpNum = NextUsed - UsedMDNodes.begin() + 1;
759 if (
Op->isDistinct() && !
N->isDistinct())
766 assert(OpNum <= N->getNumOperands() &&
767 "Visited past the end of N's operands");
773 MetadataMap[
N].ID = MDs.size();
777 if (Worklist.
empty() || Worklist.
back().first->isDistinct()) {
778 for (
const MDNode *
N : DelayedDistinctNodes)
780 DelayedDistinctNodes.clear();
785const MDNode *ValueEnumerator::enumerateMetadataImpl(
unsigned F,
const Metadata *MD) {
791 "Invalid metadata kind");
793 auto Insertion = MetadataMap.insert(std::make_pair(MD, MDIndex(
F)));
794 MDIndex &
Entry = Insertion.first->second;
795 if (!Insertion.second) {
797 if (
Entry.hasDifferentFunction(
F))
798 dropFunctionFromMetadata(*Insertion.first);
808 Entry.ID = MDs.size();
812 EnumerateValue(
C->getValue());
819void ValueEnumerator::EnumerateFunctionLocalMetadata(
821 assert(
F &&
"Expected a function");
830 MDs.push_back(
Local);
832 Index.ID = MDs.size();
834 EnumerateValue(
Local->getValue());
839void ValueEnumerator::EnumerateFunctionLocalListMetadata(
841 assert(
F &&
"Expected a function");
844 MDIndex &
Index = MetadataMap[ArgList];
850 for (ValueAsMetadata *VAM : ArgList->
getArgs()) {
852 assert(MetadataMap.count(VAM) &&
853 "LocalAsMetadata should be enumerated before DIArgList");
855 "Expected LocalAsMetadata in the same function");
858 "Expected LocalAsMetadata or ConstantAsMetadata");
859 assert(ValueMap.count(VAM->getValue()) &&
860 "Constant should be enumerated beforeDIArgList");
861 EnumerateMetadata(
F, VAM);
865 MDs.push_back(ArgList);
867 Index.ID = MDs.size();
883 return N->isDistinct() ? 2 : 3;
886void ValueEnumerator::organizeMetadata() {
887 assert(MetadataMap.size() == MDs.size() &&
888 "Metadata map and vector out of sync");
896 Order.
reserve(MetadataMap.size());
913 std::vector<const Metadata *> OldMDs;
915 MDs.reserve(OldMDs.size());
916 for (
unsigned I = 0,
E = Order.
size();
I !=
E && !Order[
I].F; ++
I) {
917 auto *MD = Order[
I].get(OldMDs);
919 MetadataMap[MD].ID =
I + 1;
925 if (MDs.size() == Order.
size())
930 FunctionMDs.reserve(OldMDs.size());
932 for (
unsigned I = MDs.size(),
E = Order.
size(), ID = MDs.size();
I !=
E;
934 unsigned F = Order[
I].F;
937 }
else if (PrevF !=
F) {
938 R.Last = FunctionMDs.size();
940 R.First = FunctionMDs.size();
946 auto *MD = Order[
I].get(OldMDs);
948 MetadataMap[MD].ID = ++
ID;
952 R.Last = FunctionMDs.size();
953 FunctionMDInfo[PrevF] =
R;
956void ValueEnumerator::incorporateFunctionMetadata(
const Function &
F) {
957 NumModuleMDs = MDs.size();
960 NumMDStrings =
R.NumStrings;
961 MDs.insert(MDs.end(), FunctionMDs.begin() +
R.First,
962 FunctionMDs.begin() +
R.Last);
965void ValueEnumerator::EnumerateValue(
const Value *
V) {
966 assert(!
V->getType()->isVoidTy() &&
"Can't insert void values!");
970 unsigned &ValueID = ValueMap[
V];
973 Values[ValueID-1].second++;
978 if (
const Comdat *
C = GO->getComdat())
982 EnumerateType(
V->getType());
987 }
else if (
C->getNumOperands()) {
996 for (
const Use &U :
C->operands())
1000 if (
CE->getOpcode() == Instruction::ShuffleVector)
1001 EnumerateValue(
CE->getShuffleMaskForBitcode());
1003 EnumerateType(
GEP->getSourceElementType());
1008 Values.push_back(std::make_pair(
V, 1U));
1009 ValueMap[
V] = Values.size();
1015 Values.push_back(std::make_pair(
V, 1U));
1016 ValueID = Values.size();
1020void ValueEnumerator::EnumerateType(
Type *Ty) {
1021 unsigned *
TypeID = &TypeMap[Ty];
1031 if (!STy->isLiteral())
1037 EnumerateType(SubTy);
1051 Types.push_back(Ty);
1058void ValueEnumerator::EnumerateOperandType(
const Value *
V) {
1059 EnumerateType(
V->getType());
1069 if (ValueMap.count(
C))
1074 for (
const Value *
Op :
C->operands()) {
1080 EnumerateOperandType(
Op);
1083 if (
CE->getOpcode() == Instruction::ShuffleVector)
1084 EnumerateOperandType(
CE->getShuffleMaskForBitcode());
1085 if (
CE->getOpcode() == Instruction::GetElementPtr)
1090void ValueEnumerator::EnumerateAttributes(AttributeList PAL) {
1091 if (PAL.isEmpty())
return;
1094 unsigned &
Entry = AttributeListMap[PAL];
1097 AttributeLists.push_back(PAL);
1098 Entry = AttributeLists.size();
1102 for (
unsigned i : PAL.indexes()) {
1103 AttributeSet AS = PAL.getAttributes(i);
1107 unsigned &
Entry = AttributeGroupMap[Pair];
1109 AttributeGroups.push_back(Pair);
1110 Entry = AttributeGroups.size();
1113 if (Attr.isTypeAttribute())
1114 EnumerateType(Attr.getValueAsType());
1121 InstructionCount = 0;
1122 NumModuleValues = Values.size();
1126 incorporateFunctionMetadata(
F);
1129 for (
const auto &
I :
F.args()) {
1131 if (
I.hasAttribute(Attribute::ByVal))
1132 EnumerateType(
I.getParamByValType());
1133 else if (
I.hasAttribute(Attribute::StructRet))
1134 EnumerateType(
I.getParamStructRetType());
1135 else if (
I.hasAttribute(Attribute::ByRef))
1136 EnumerateType(
I.getParamByRefType());
1138 FirstFuncConstantID = Values.size();
1143 for (
const Use &OI :
I.operands()) {
1148 EnumerateValue(SVI->getShuffleMaskForBitcode());
1150 for (
const auto &Case :
SI->cases())
1151 EnumerateValue(Case.getCaseValue());
1154 BasicBlocks.push_back(&BB);
1155 ValueMap[&BB] = BasicBlocks.size();
1159 OptimizeConstants(FirstFuncConstantID, Values.size());
1163 EnumerateAttributes(
F.getAttributes());
1165 FirstInstID = Values.size();
1170 auto AddFnLocalMetadata = [&](
Metadata *MD) {
1191 for (
const Use &OI :
I.operands()) {
1193 AddFnLocalMetadata(MD->getMetadata());
1197 assert(DVR.getRawLocation() &&
1198 "DbgVariableRecord location unexpectedly null");
1199 AddFnLocalMetadata(DVR.getRawLocation());
1200 if (DVR.isDbgAssign()) {
1201 assert(DVR.getRawAddress() &&
1202 "DbgVariableRecord location unexpectedly null");
1203 AddFnLocalMetadata(DVR.getRawAddress());
1206 if (!
I.getType()->isVoidTy())
1216 "Missing value for metadata operand");
1217 EnumerateFunctionLocalMetadata(
F,
Local);
1221 for (
const DIArgList *ArgList : ArgListMDVector)
1222 EnumerateFunctionLocalListMetadata(
F, ArgList);
1228 ValueMap.erase(V.first);
1230 MetadataMap.erase(MD);
1234 Values.resize(NumModuleValues);
1235 MDs.resize(NumModuleMDs);
1236 BasicBlocks.clear();
1242 unsigned Counter = 0;
1244 IDMap[&BB] = ++Counter;
1251 unsigned &Idx = GlobalBasicBlockIDs[BB];
for(const MachineOperand &MO :llvm::drop_begin(OldMI.operands(), Desc.getNumOperands()))
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
MapVector< const Value *, unsigned > OrderMap
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
This file contains the declaration of the GlobalIFunc class, which represents a single indirect funct...
Module.h This file contains the declarations for the Module class.
This defines the Use class.
static bool lookup(const GsymReader &GR, GsymDataExtractor &Data, uint64_t &Offset, uint64_t BaseAddr, uint64_t Addr, SourceLocations &SrcLocs, llvm::Error &Err)
A Lookup helper functions.
This file defines the SmallVector class.
static void predictValueUseListOrderImpl(const Value *V, const Function *F, unsigned ID, const OrderMap &OM, UseListOrderStack &Stack)
static unsigned getMetadataTypeOrder(const Metadata *MD)
static void orderValue(const Value *V, OrderMap &OM)
static void predictValueUseListOrder(const Value *V, const Function *F, OrderMap &OM, UseListOrderStack &Stack)
static UseListOrderStack predictUseListOrder(const Module &M)
static void IncorporateFunctionInfoGlobalBBIDs(const Function *F, DenseMap< const BasicBlock *, unsigned > &IDMap)
static bool isIntOrIntVectorValue(const std::pair< const Value *, unsigned > &V)
static OrderMap orderModule(const Module &M)
This class represents an incoming formal argument to a Function.
bool hasAttributes() const
Return true if attributes exists in this set.
LLVM Basic Block Representation.
const Function * getParent() const
Return the enclosing method, or null if none.
This is an important base class in LLVM.
List of ValueAsMetadata, to be used as an argument to a dbg.value intrinsic.
ArrayRef< ValueAsMetadata * > getArgs() const
Records a position in IR for a source label (DILabel).
Base class for non-instruction debug metadata records that have positions within IR.
DebugLoc getDebugLoc() const
Record of a variable value-assignment, aka a non instruction representation of the dbg....
LLVM_ABI DIAssignID * getAssignID() const
DIExpression * getExpression() const
DILocalVariable * getVariable() const
Metadata * getRawLocation() const
Returns the metadata operand for the first location description.
Metadata * getRawAddress() const
DIExpression * getAddressExpression() const
DenseMapIterator< KeyT, ValueT, KeyInfoT, BucketT, true > const_iterator
ValueT lookup(const_arg_type_t< KeyT > Val) const
Return the entry for the specified key, or a default constructed value if no such entry exists.
std::pair< iterator, bool > try_emplace(KeyT &&Key, Ts &&...Args)
const MDOperand * op_iterator
unsigned & operator[](const const Value *&Key)
A Module instance is used to store all the information related to an LLVM module.
iterator_range< op_iterator > operands()
void reserve(size_type N)
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
The instances of the Type class are immutable: once they are created, they are never changed.
static LLVM_ABI Type * getMetadataTy(LLVMContext &C)
ArrayRef< Type * > subtypes() const
A Use represents the edge between a Value definition and its users.
unsigned getMetadataID(const Metadata *MD) const
UseListOrderStack UseListOrders
void print(raw_ostream &OS, const ValueMapType &Map, const char *Name) const
unsigned getInstructionID(const Instruction *I) const
void incorporateFunction(const Function &F)
incorporateFunction/purgeFunction - If you'd like to deal with a function, use these two methods to g...
ValueEnumerator(const Module &M, bool ShouldPreserveUseListOrder)
unsigned getComdatID(const Comdat *C) const
uint64_t computeBitsRequiredForTypeIndices() const
unsigned getValueID(const Value *V) const
unsigned getGlobalBasicBlockID(const BasicBlock *BB) const
getGlobalBasicBlockID - This returns the function-specific ID for the specified basic block.
void setInstructionID(const Instruction *I)
std::pair< unsigned, AttributeSet > IndexAndAttrSet
Attribute groups as encoded in bitcode are almost AttributeSets, but they include the AttributeList i...
const TypeList & getTypes() const
This class provides a symbol table of name/value pairs.
LLVM Value Representation.
iterator_range< use_iterator > uses()
This class implements an extremely fast bulk output stream that can only output to a stream.
@ CE
Windows NT (Windows on ARM)
This is an optimization pass for GlobalISel generic memory operations.
auto drop_begin(T &&RangeOrContainer, size_t N=1)
Return a range covering RangeOrContainer with the first N elements excluded.
unsigned Log2_32_Ceil(uint32_t Value)
Return the ceil log base 2 of the specified value, 32 if the value is zero.
auto size(R &&Range, std::enable_if_t< std::is_base_of< std::random_access_iterator_tag, typename std::iterator_traits< decltype(Range.begin())>::iterator_category >::value, void > *=nullptr)
Get the size of a range.
RelativeUniformCounterPtr Values
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
RelativeUniformCounterPtr ValuesPtrExpr VTableAddr Value
auto reverse(ContainerTy &&C)
void sort(IteratorTy Start, IteratorTy End)
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
bool is_sorted(R &&Range, Compare C)
Wrapper function around std::is_sorted to check if elements in a range R are sorted with respect to a...
class LLVM_GSL_OWNER SmallVector
Forward declaration of SmallVector so that calculateSmallVectorDefaultInlinedElements can reference s...
bool isa(const From &Val)
isa<X> - Return true if the parameter to the template is an instance of one of the template type argu...
std::vector< UseListOrder > UseListOrderStack
LLVM_ABI raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
DWARFExpression::Operation Op
decltype(auto) cast(const From &Val)
cast<X> - Return the argument parameter cast to the specified type.
RelativeUniformCounterPtr ValuesPtrExpr VTableAddr Next
static auto filterDbgVars(iterator_range< simple_ilist< DbgRecord >::iterator > R)
Filter the DbgRecord range to DbgVariableRecord types only and downcast.
void swap(llvm::BitVector &LHS, llvm::BitVector &RHS)
Implement std::swap in terms of BitVector swap.
Function object to check whether the second component of a container supported by std::get (like std:...