/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
H A D | MDBuilder.h | 31 class MDNode; variable 54 MDNode *createFPMath(float Accuracy); 61 MDNode *createBranchWeights(uint32_t TrueWeight, uint32_t FalseWeight); 64 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights); 67 MDNode *createUnpredictable(); 73 MDNode *createFunctionEntryCount(uint64_t Count, bool Synthetic, 77 MDNode *createFunctionSectionPrefix(StringRef Prefix); 80 MDNode *createPseudoProbeDesc(uint64_t GUID, uint64_t Hash, Function *F); 87 MDNode *createRange(const APInt &Lo, const APInt &Hi); 90 MDNode *createRange(Constant *Lo, Constant *Hi); [all …]
|
H A D | Metadata.h | 653 explicit AAMDNodes(MDNode *T, MDNode *TS, MDNode *S, MDNode *N) in AAMDNodes() 668 MDNode *TBAA = nullptr; 671 MDNode *TBAAStruct = nullptr; 674 MDNode *Scope = nullptr; 677 MDNode *NoAlias = nullptr; 680 static MDNode *ShiftTBAA(MDNode *M, size_t off); 683 static MDNode *ShiftTBAAStruct(MDNode *M, size_t off); 716 return AAMDNodes(DenseMapInfo<MDNode *>::getEmptyKey(), 721 return AAMDNodes(DenseMapInfo<MDNode *>::getTombstoneKey(), 726 return DenseMapInfo<MDNode *>::getHashValue(Val.TBAA) ^ [all …]
|
H A D | Verifier.h | 33 class MDNode; variable 54 DenseMap<const MDNode *, TBAABaseNodeSummary> TBAABaseNodes; 58 DenseMap<const MDNode *, bool> TBAAScalarNodes; 62 MDNode *getFieldNodeFromTBAABaseNode(Instruction &I, const MDNode *BaseNode, 65 const MDNode *BaseNode, 68 const MDNode *BaseNode, 71 bool isValidScalarTBAANode(const MDNode *MD); 79 bool visitTBAAMetadata(Instruction &I, const MDNode *MD);
|
H A D | IRBuilder.h | 55 class MDNode; variable 98 SmallVector<std::pair<unsigned, MDNode *>, 2> MetadataToCopy; 102 void AddOrRemoveMetadataToCopy(unsigned Kind, MDNode *MD) { in AddOrRemoveMetadataToCopy() 104 erase_if(MetadataToCopy, [Kind](const std::pair<unsigned, MDNode *> &KV) { in AddOrRemoveMetadataToCopy() 126 MDNode *DefaultFPMathTag; 138 MDNode *FPMathTag, ArrayRef<OperandBundleDef> OpBundles) in IRBuilderBase() 291 MDNode *getDefaultFPMathTag() const { return DefaultFPMathTag; } in getDefaultFPMathTag() 302 void setDefaultFPMathTag(MDNode *FPMathTag) { DefaultFPMathTag = FPMathTag; } in setDefaultFPMathTag() 392 MDNode *FPMathTag; 582 MDNode *TBAATag = nullptr, MDNode *ScopeTag = nullptr, [all …]
|
H A D | DebugLoc.h | 48 explicit DebugLoc(const MDNode *N); 77 DenseMap<const MDNode *, MDNode *> &Cache); 81 MDNode *getScope() const; 87 MDNode *getInlinedAtScope() const; 99 MDNode *getAsMDNode() const { return Loc; } in getAsMDNode()
|
H A D | AutoUpgrade.h | 24 class MDNode; variable 70 MDNode *UpgradeTBAANode(MDNode &TBAANode); 92 MDNode *upgradeInstructionLoopAttachment(MDNode &N);
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | MDBuilder.cpp | 28 MDNode *MDBuilder::createFPMath(float Accuracy) { in createFPMath() 34 return MDNode::get(Context, Op); in createFPMath() 37 MDNode *MDBuilder::createBranchWeights(uint32_t TrueWeight, in createBranchWeights() 42 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights) { in createBranchWeights() 52 return MDNode::get(Context, Vals); in createBranchWeights() 55 MDNode *MDBuilder::createUnpredictable() { in createUnpredictable() 56 return MDNode::get(Context, None); in createUnpredictable() 59 MDNode *MDBuilder::createFunctionEntryCount( in createFunctionEntryCount() 75 return MDNode::get(Context, Ops); in createFunctionEntryCount() 78 MDNode *MDBuilder::createFunctionSectionPrefix(StringRef Prefix) { in createFunctionSectionPrefix() [all …]
|
H A D | Metadata.cpp | 88 return MDNode::get(Context, None); in canonicalizeMetadataForValue() 91 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue() 97 return MDNode::get(Context, None); in canonicalizeMetadataForValue() 318 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses() 328 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate() 334 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists() 340 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable() 494 void *MDNode::operator new(size_t Size, unsigned NumOps) { in operator new() 508 LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE void MDNode::operator delete(void *Mem) { in operator delete() 509 MDNode *N = static_cast<MDNode *>(Mem); in operator delete() [all …]
|
H A D | DebugLoc.cpp | 19 DebugLoc::DebugLoc(const MDNode *L) : Loc(const_cast<MDNode *>(L)) {} in DebugLoc() 35 MDNode *DebugLoc::getScope() const { in getScope() 45 MDNode *DebugLoc::getInlinedAtScope() const { in getInlinedAtScope() 51 const MDNode *Scope = getInlinedAtScope(); in getFnDebugLoc() 73 DenseMap<const MDNode *, MDNode *> &Cache) { in appendInlinedAt() argument
|
H A D | AbstractCallSite.cpp | 41 MDNode *CallbackMD = Callee->getMetadata(LLVMContext::MD_callback); in getCallbackUses() 46 MDNode *OpMD = cast<MDNode>(Op.get()); in getCallbackUses() 94 MDNode *CallbackMD = Callee->getMetadata(LLVMContext::MD_callback); in AbstractCallSite() 102 MDNode *CallbackEncMD = nullptr; in AbstractCallSite() 104 MDNode *OpMD = cast<MDNode>(Op.get()); in AbstractCallSite()
|
H A D | DebugInfo.cpp | 129 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) { in getDISubprogram() 283 auto *N = dyn_cast<MDNode>(DVI.getVariable()); in processVariable() 350 static MDNode *updateLoopMetadataDebugLocationsImpl( in updateLoopMetadataDebugLocationsImpl() 351 MDNode *OrigLoopID, in updateLoopMetadataDebugLocationsImpl() 370 MDNode *NewLoopID = MDNode::getDistinct(OrigLoopID->getContext(), MDs); in updateLoopMetadataDebugLocationsImpl() 378 MDNode *OrigLoopID = I.getMetadata(LLVMContext::MD_loop); in updateLoopMetadataDebugLocations() 381 MDNode *NewLoopID = updateLoopMetadataDebugLocationsImpl(OrigLoopID, Updater); in updateLoopMetadataDebugLocations() 385 static MDNode *stripDebugLocFromLoopID(MDNode *N) { in stripDebugLocFromLoopID() 414 DenseMap<MDNode*, MDNode*> LoopIDsMap; in stripDebugInfo() 476 MDNode *EmptySubroutineType; [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | TypeBasedAliasAnalysis.cpp | 137 static bool isNewFormatTypeNode(const MDNode *N) { in isNewFormatTypeNode() 141 if (!isa<MDNode>(N->getOperand(0))) in isNewFormatTypeNode() 194 using TBAANode = TBAANodeImpl<const MDNode>; 195 using MutableTBAANode = TBAANodeImpl<MDNode>; 224 return dyn_cast_or_null<MDNode>(Node->getOperand(0)); in getBaseType() 228 return dyn_cast_or_null<MDNode>(Node->getOperand(1)); in getAccessType() 258 using TBAAStructTagNode = TBAAStructTagNodeImpl<const MDNode>; 259 using MutableTBAAStructTagNode = TBAAStructTagNodeImpl<MDNode>; 267 const MDNode *Node = nullptr; 271 explicit TBAAStructTypeNode(const MDNode *N) : Node(N) {} in TBAAStructTypeNode() [all …]
|
H A D | ScopedNoAliasAA.cpp | 62 const MDNode *AScopes = LocA.AATags.Scope, *BScopes = LocB.AATags.Scope; in alias() 64 const MDNode *ANoAlias = LocA.AATags.NoAlias, *BNoAlias = LocB.AATags.NoAlias; in alias() 110 static void collectMDInDomain(const MDNode *List, const MDNode *Domain, in collectMDInDomain() 111 SmallPtrSetImpl<const MDNode *> &Nodes) { in collectMDInDomain() 113 if (const MDNode *MD = dyn_cast<MDNode>(MDOp)) in collectMDInDomain() 118 bool ScopedNoAliasAAResult::mayAliasInScopes(const MDNode *Scopes, in mayAliasInScopes() 119 const MDNode *NoAlias) const { in mayAliasInScopes() 124 SmallPtrSet<const MDNode *, 16> Domains; in mayAliasInScopes() 126 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in mayAliasInScopes() 127 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in mayAliasInScopes() [all …]
|
H A D | LoopInfo.cpp | 503 MDNode *Loop::getLoopID() const { in getLoopID() 504 MDNode *LoopID = nullptr; in getLoopID() 511 MDNode *MD = TI->getMetadata(LLVMContext::MD_loop); in getLoopID() 527 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID() 542 MDNode *DisableUnrollMD = in setLoopAlreadyUnrolled() 543 MDNode::get(Context, MDString::get(Context, "llvm.loop.unroll.disable")); in setLoopAlreadyUnrolled() 544 MDNode *LoopID = getLoopID(); in setLoopAlreadyUnrolled() 545 MDNode *NewLoopID = makePostTransformationMetadata( in setLoopAlreadyUnrolled() 553 MDNode *MustProgress = findOptionMDForLoop(this, "llvm.loop.mustprogress"); in setLoopMustProgress() 558 MDNode *MustProgressMD = in setLoopMustProgress() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
H A D | CodeGenTBAA.h | 43 TBAAAccessInfo(TBAAAccessKind Kind, llvm::MDNode *BaseType, in TBAAAccessInfo() 44 llvm::MDNode *AccessType, uint64_t Offset, uint64_t Size) in TBAAAccessInfo() 49 TBAAAccessInfo(llvm::MDNode *BaseType, llvm::MDNode *AccessType, in TBAAAccessInfo() 55 explicit TBAAAccessInfo(llvm::MDNode *AccessType, uint64_t Size) in TBAAAccessInfo() 101 llvm::MDNode *BaseType; 105 llvm::MDNode *AccessType; 129 llvm::DenseMap<const Type *, llvm::MDNode *> MetadataCache; 131 llvm::DenseMap<const Type *, llvm::MDNode *> BaseTypeMetadataCache; 133 llvm::DenseMap<TBAAAccessInfo, llvm::MDNode *> AccessTagMetadataCache; 137 llvm::DenseMap<const Type *, llvm::MDNode *> StructMetadataCache; [all …]
|
H A D | CGLoopInfo.cpp | 23 MDNode * 30 MDNode *LoopID = MDNode::getDistinct(Ctx, NewLoopProperties); in createLoopPropertiesMetadata() 35 MDNode *LoopInfo::createPipeliningMetadata(const LoopAttributes &Attrs, in createPipeliningMetadata() 51 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.pipeline.disable"), in createPipeliningMetadata() 68 Args.push_back(MDNode::get(Ctx, Vals)); in createPipeliningMetadata() 73 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPipeliningMetadata() 79 MDNode * 107 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable"))); in createPartialUnrollMetadata() 110 MDNode *Followup = createPipeliningMetadata(Attrs, FollowupLoopProperties, in createPartialUnrollMetadata() 122 Args.push_back(MDNode::get(Ctx, Vals)); in createPartialUnrollMetadata() [all …]
|
H A D | CGLoopInfo.h | 26 class MDNode; variable 95 llvm::MDNode *getLoopID() const { return TempLoopID.get(); } in getLoopID() 104 llvm::MDNode *getAccessGroup() const { return AccGroup; } in getAccessGroup() 118 llvm::MDNode *AccGroup = nullptr; 128 llvm::MDNode *UnrollAndJamInnerFollowup = nullptr; 131 llvm::MDNode * 151 llvm::MDNode * 155 llvm::MDNode * 159 llvm::MDNode * 163 llvm::MDNode * [all …]
|
H A D | CodeGenTBAA.cpp | 43 llvm::MDNode *CodeGenTBAA::getRoot() { in getRoot() 58 llvm::MDNode *CodeGenTBAA::createScalarTypeNode(StringRef Name, in createScalarTypeNode() 59 llvm::MDNode *Parent, in createScalarTypeNode() 68 llvm::MDNode *CodeGenTBAA::getChar() { in getChar() 115 llvm::MDNode *CodeGenTBAA::getTypeInfoHelper(const Type *Ty) { in getTypeInfoHelper() 225 llvm::MDNode *CodeGenTBAA::getTypeInfo(QualType QTy) { in getTypeInfo() 245 if (llvm::MDNode *N = MetadataCache[Ty]) in getTypeInfo() 251 llvm::MDNode *TypeNode = getTypeInfoHelper(Ty); in getTypeInfo() 313 llvm::MDNode *TBAAType = MayAlias ? getChar() : getTypeInfo(QTy); in CollectFields() 314 llvm::MDNode *TBAATag = getAccessTagInfo(TBAAAccessInfo(TBAAType, Size)); in CollectFields() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
H A D | R600OpenCLImageTypeLoweringPass.cpp | 77 GetFunctionFromMDNode(MDNode *Node) { in GetFunctionFromMDNode() 92 MDNode *ArgNode = dyn_cast_or_null<MDNode>(Node->getOperand(i + 1)); in GetFunctionFromMDNode() 109 AccessQualFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in AccessQualFromMD() 110 MDNode *ArgAQNode = cast<MDNode>(KernelMDNode->getOperand(2)); in AccessQualFromMD() 115 ArgTypeFromMD(MDNode *KernelMDNode, unsigned ArgIdx) { in ArgTypeFromMD() 116 MDNode *ArgTypeNode = cast<MDNode>(KernelMDNode->getOperand(3)); in ArgTypeFromMD() 121 GetArgMD(MDNode *KernelMDNode, unsigned OpIdx) { in GetArgMD() 124 MDNode *Node = cast<MDNode>(KernelMDNode->getOperand(i + 1)); in GetArgMD() 213 bool replaceImageAndSamplerUses(Function *F, MDNode *KernelMDNode) { in replaceImageAndSamplerUses() 253 std::tuple<Function *, MDNode *> [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
H A D | ValueMapper.cpp | 202 SmallVector<MDNode *, 16> POT; // Post-order traversal. 211 Metadata &getFwdReference(MDNode &Op); 215 SmallVector<MDNode *, 16> DistinctWorklist; 219 SmallVector<MDNode *, 16> POTStorage; 242 Metadata *map(const MDNode &N); 264 Metadata *mapTopLevelUniquedNode(const MDNode &FirstN); 283 MDNode *mapDistinctNode(const MDNode &N); 302 bool createPOT(UniquedGraph &G, const MDNode &FirstN); 311 MDNode *visitOperands(UniquedGraph &G, MDNode::op_iterator &I, 312 MDNode::op_iterator E, bool &HasChanged); [all …]
|
H A D | CloneFunction.cpp | 47 DenseMap<const MDNode *, MDNode *> Cache; in CloneBasicBlock() 206 auto mapToSelfIfNew = [&VMap](MDNode *N) { in CloneFunctionInto() 230 SmallVector<std::pair<unsigned, MDNode *>, 1> MDs; in CloneFunctionInto() 270 MDNode *MappedUnit = in CloneFunctionInto() 929 void llvm::cloneNoAliasScopes(ArrayRef<MDNode *> NoAliasDeclScopes, in cloneNoAliasScopes() 930 DenseMap<MDNode *, MDNode *> &ClonedScopes, in cloneNoAliasScopes() argument 936 if (MDNode *MD = dyn_cast<MDNode>(MDOperand)) { in cloneNoAliasScopes() 946 MDNode *NewScope = MDB.createAnonymousAliasScope( in cloneNoAliasScopes() 947 const_cast<MDNode *>(SNANode.getDomain()), Name); in cloneNoAliasScopes() 955 const DenseMap<MDNode *, MDNode *> &ClonedScopes, in adaptNoAliasScopes() argument [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-reduce/deltas/ |
H A D | ReduceMetadata.cpp | 25 std::set<MDNode *> &SeenNodes, in getChunkMetadataNodes() 26 std::set<MDNode *> &NodesToKeep) { in getChunkMetadataNodes() 27 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in getChunkMetadataNodes() 39 const std::set<MDNode *> &NodesToKeep) { in eraseMetadataIfOutsideChunk() 40 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in eraseMetadataIfOutsideChunk() 53 std::set<MDNode *> SeenNodes; in extractMetadataFromModule() 54 std::set<MDNode *> NodesToKeep; in extractMetadataFromModule() 95 static void addMetadataToSet(T &MDUser, std::set<MDNode *> &UnnamedNodes) { in addMetadataToSet() 96 SmallVector<std::pair<unsigned, MDNode *>, 4> MDs; in addMetadataToSet() 104 std::set<MDNode *> UnnamedNodes; in countMetadataTargets()
|
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/go/llvm/ |
H A D | IRBindings.cpp | 35 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2() 45 N->addOperand(unwrap<MDNode>(Val)); in LLVMAddNamedMetadataOperand2() 49 MDNode *N = MD ? unwrap<MDNode>(MD) : nullptr; in LLVMSetMetadata2() 60 unwrap<MDNode>(Scope)->getContext(), Line, Col, unwrap<MDNode>(Scope), in LLVMGoSetCurrentDebugLocation() 61 InlinedAt ? unwrap<MDNode>(InlinedAt) : nullptr)); in LLVMGoSetCurrentDebugLocation()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
H A D | Cloning.h | 301 ArrayRef<BasicBlock *> BBs, SmallVectorImpl<MDNode *> &NoAliasDeclScopes); 308 SmallVectorImpl<MDNode *> &NoAliasDeclScopes); 316 ArrayRef<MDNode *> NoAliasDeclScopes, 317 DenseMap<MDNode *, MDNode *> &ClonedScopes, 324 llvm::Instruction *I, const DenseMap<MDNode *, MDNode *> &ClonedScopes, 330 void cloneAndAdaptNoAliasScopes(ArrayRef<MDNode *> NoAliasDeclScopes, 337 void cloneAndAdaptNoAliasScopes(ArrayRef<MDNode *> NoAliasDeclScopes,
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DwarfFile.h | 33 class MDNode; variable 90 DenseMap<const MDNode *, DIE *> AbstractSPDies; 96 DenseMap<const MDNode *, DIE *> DITypeNodeToDieMap; 165 DenseMap<const MDNode *, DIE *> &getAbstractSPDies() { in getAbstractSPDies() 173 void insertDIE(const MDNode *TypeMD, DIE *Die) { in insertDIE() 177 DIE *getDIE(const MDNode *TypeMD) { in getDIE()
|