Home
last modified time | relevance | path

Searched refs:KindID (Results 1 – 13 of 13) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DAttributeImpl.h40 unsigned char KindID; ///< Holds the AttrEntryKind of the attribute variable
50 AttributeImpl(AttrEntryKind KindID) : KindID(KindID) {} in AttributeImpl() argument
57 bool isEnumAttribute() const { return KindID == EnumAttrEntry; } in isEnumAttribute()
58 bool isIntAttribute() const { return KindID == IntAttrEntry; } in isIntAttribute()
59 bool isStringAttribute() const { return KindID == StringAttrEntry; } in isStringAttribute()
60 bool isTypeAttribute() const { return KindID == TypeAttrEntry; } in isTypeAttribute()
H A DMetadata.cpp1191 MDNode *Value::getMetadata(unsigned KindID) const { in getMetadata()
1196 return Info.lookup(KindID); in getMetadata()
1207 void Value::getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata() argument
1209 getContext().pImpl->ValueMetadata[this].get(KindID, MDs); in getMetadata()
1228 void Value::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata() argument
1237 Info.set(KindID, Node); in setMetadata()
1249 Info.erase(KindID); in setMetadata()
1262 void Value::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata() argument
1266 getContext().pImpl->ValueMetadata[this].insert(KindID, MD); in addMetadata()
1273 bool Value::eraseMetadata(unsigned KindID) { in eraseMetadata() argument
[all …]
H A DCore.cpp137 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID, in LLVMCreateEnumAttribute() argument
140 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateEnumAttribute()
167 LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID, in LLVMCreateTypeAttribute() argument
170 auto AttrKind = (Attribute::AttrKind)KindID; in LLVMCreateTypeAttribute()
907 LLVMValueRef LLVMGetMetadata(LLVMValueRef Inst, unsigned KindID) { in LLVMGetMetadata() argument
910 if (auto *MD = I->getMetadata(KindID)) in LLVMGetMetadata()
929 void LLVMSetMetadata(LLVMValueRef Inst, unsigned KindID, LLVMValueRef Val) { in LLVMSetMetadata() argument
932 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata()
2469 unsigned KindID) { in LLVMGetEnumAttributeAtIndex() argument
2471 (Attribute::AttrKind)KindID)); in LLVMGetEnumAttributeAtIndex()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DCloneDetection.cpp571 if (ThisOccurence.KindID == OtherOccurence.KindID) in countPatternDifferences()
590 if (OtherOccurence.KindID < Variables.size()) in countPatternDifferences()
591 FirstSuggestion = Variables[OtherOccurence.KindID]; in countPatternDifferences()
596 Variables[ThisOccurence.KindID], ThisOccurence.Mention, in countPatternDifferences()
603 if (ThisOccurence.KindID < Other.Variables.size()) in countPatternDifferences()
604 SecondSuggestion = Other.Variables[ThisOccurence.KindID]; in countPatternDifferences()
609 Other.Variables[OtherOccurence.KindID], OtherOccurence.Mention, in countPatternDifferences()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/
H A DCloneDetection.h356 size_t KindID; member
360 VariableOccurence(size_t KindID, const Stmt *Mention) in VariableOccurence()
361 : KindID(KindID), Mention(Mention) {} in VariableOccurence()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DInstruction.h266 bool hasMetadata(unsigned KindID) const {
267 return getMetadata(KindID) != nullptr;
277 MDNode *getMetadata(unsigned KindID) const {
279 return getMetadataImpl(KindID);
312 void setMetadata(unsigned KindID, MDNode *Node);
513 MDNode *getMetadataImpl(unsigned KindID) const;
H A DValue.h577 MDNode *getMetadata(unsigned KindID) const;
585 void getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const;
601 bool hasMetadata(unsigned KindID) const { in hasMetadata() argument
602 return getMetadata(KindID) != nullptr; in hasMetadata()
614 void setMetadata(unsigned KindID, MDNode *Node);
620 void addMetadata(unsigned KindID, MDNode &MD);
627 bool eraseMetadata(unsigned KindID);
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/go/llvm/
H A DIRBindings.cpp48 void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD) { in LLVMSetMetadata2() argument
50 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata2()
H A DIRBindings.h44 void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD);
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h69 MDNode *getMetadata(const Instruction *I, unsigned KindID) const { in getMetadata()
71 return I->getMetadata(KindID); in getMetadata()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DCore.h593 LLVMAttributeRef LLVMCreateEnumAttribute(LLVMContextRef C, unsigned KindID,
610 LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID,
2584 unsigned KindID);
2589 unsigned KindID);
3131 LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID);
3136 void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node);
3292 unsigned KindID);
3297 unsigned KindID);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DOpenMPOpt.cpp2640 MDString *KindID = dyn_cast<MDString>(Op->getOperand(1)); in identifyKernels() local
2641 if (!KindID || KindID->getString() != "kernel") in identifyKernels()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DAsmMatcherEmitter.cpp2046 unsigned KindID = OperandConversionKinds.size(); in emitConvertFuncs() local
2052 ConversionTable.back().push_back(KindID); in emitConvertFuncs()