Home
last modified time | relevance | path

Searched refs:ValueKind (Results 1 – 25 of 35) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DAMDGPUMetadata.cpp51 struct ScalarEnumerationTraits<ValueKind> {
52 static void enumeration(IO &YIO, ValueKind &EN) { in enumeration()
53 YIO.enumCase(EN, "ByValue", ValueKind::ByValue); in enumeration()
54 YIO.enumCase(EN, "GlobalBuffer", ValueKind::GlobalBuffer); in enumeration()
56 YIO.enumCase(EN, "Sampler", ValueKind::Sampler); in enumeration()
57 YIO.enumCase(EN, "Image", ValueKind::Image); in enumeration()
58 YIO.enumCase(EN, "Pipe", ValueKind::Pipe); in enumeration()
59 YIO.enumCase(EN, "Queue", ValueKind::Queue); in enumeration()
63 YIO.enumCase(EN, "HiddenNone", ValueKind::HiddenNone); in enumeration()
68 ValueKind::HiddenCompletionAction); in enumeration()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h741 getValueForSite(uint32_t ValueKind, uint32_t Site,
754 void addValueData(uint32_t ValueKind, uint32_t Site,
827 getValueSitesForKind(uint32_t ValueKind) { in getValueSitesForKind()
832 ValueKind); in getValueSitesForKind()
837 getValueSitesForKind(uint32_t ValueKind) const { in getValueSitesForKind()
840 switch (ValueKind) { in getValueSitesForKind()
851 getOrCreateValueSitesForKind(uint32_t ValueKind) { in getOrCreateValueSitesForKind()
854 switch (ValueKind) { in getOrCreateValueSitesForKind()
913 for (const auto &SR : getValueSitesForKind(ValueKind)) in getNumValueData()
919 return getValueSitesForKind(ValueKind).size(); in getNumValueSites()
[all …]
H A DInstrProfData.inc584 * Extract value profile data of a function for the profile kind \c ValueKind
590 uint32_t ValueKind, uint32_t NumValueSites) {
593 This->Kind = ValueKind;
598 uint32_t ND = Closure->GetNumValueDataForSite(Record, ValueKind, S);
600 Closure->GetValueForSite(Record, DstVD, ValueKind, S);
/freebsd-14.2/contrib/llvm-project/clang/lib/Interpreter/
H A DValue.cpp125 if (ValueKind == K_PtrOrObj) { in Value()
171 ValueKind(RHS.ValueKind), IsManuallyAlloc(RHS.IsManuallyAlloc) { in Value()
180 ValueKind = std::exchange(RHS.ValueKind, K_Unspecified); in Value()
194 ValueKind = RHS.ValueKind; in operator =()
210 ValueKind = std::exchange(RHS.ValueKind, K_Unspecified); in operator =()
221 ValueKind = K_Unspecified; in clear()
230 assert(ValueKind == K_PtrOrObj); in getPtr()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Interpreter/
H A DValue.h131 bool isValid() const { return ValueKind != K_Unspecified; } in isValid()
132 bool isVoid() const { return ValueKind == K_Void; } in isVoid()
135 Kind getKind() const { return ValueKind; } in getKind()
136 void setKind(Kind K) { ValueKind = K; } in setKind()
158 bool isPointerOrObjectType() const { return ValueKind == K_PtrOrObj; } in isPointerOrObjectType()
163 switch (ValueKind) { in as()
197 Kind ValueKind = K_Unspecified;
/freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProf.cpp667 FuncLevelOverlap.Test.ValueCounts[ValueKind]); in overlap()
675 Overlap.Overlap.ValueCounts[ValueKind] += Score; in overlap()
690 getOrCreateValueSitesForKind(ValueKind); in overlapValueProfData()
692 Other.getValueSitesForKind(ValueKind); in overlapValueProfData()
795 getOrCreateValueSitesForKind(ValueKind); in mergeValueProfData()
797 Src.getValueSitesForKind(ValueKind); in mergeValueProfData()
859 uint32_t ValueKind, uint64_t N, uint64_t D, in scaleValueProfData() argument
861 for (auto &R : getValueSitesForKind(ValueKind)) in scaleValueProfData()
888 if (ValueKind == IPVK_IndirectCallTarget) in remapValue()
901 getOrCreateValueSitesForKind(ValueKind); in addValueData()
[all …]
H A DInstrProfReader.cpp344 VP_READ_ADVANCE(ValueKind); in readValueProfileData()
345 if (ValueKind > IPVK_Last) in readValueProfileData()
361 if (ValueKind == IPVK_IndirectCallTarget) { in readValueProfileData()
376 Record.addValueData(ValueKind, S, CurrentValues.data(), NumValueData, in readValueProfileData()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DComparisonCategories.cpp73 ComparisonCategoryResult ValueKind) const { in lookupValueInfo()
76 Objects, [&](ValueInfo const &Info) { return Info.Kind == ValueKind; }); in lookupValueInfo()
83 &Ctx.Idents.get(ComparisonCategories::getResultString(ValueKind))); in lookupValueInfo()
86 Objects.emplace_back(ValueKind, cast<VarDecl>(Lookup.front())); in lookupValueInfo()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DComparisonCategories.h114 ValueInfo *lookupValueInfo(ComparisonCategoryResult ValueKind) const;
127 const ValueInfo *getValueInfo(ComparisonCategoryResult ValueKind) const { in getValueInfo() argument
128 ValueInfo *Info = lookupValueInfo(ValueKind); in getValueInfo()
H A DAPValue.h127 enum ValueKind {
258 ValueKind Kind;
395 ValueKind getKind() const { return Kind; }
H A DExpr.h125 ExprBits.ValueKind = VK; in Expr()
433 return static_cast<ExprValueKind>(ExprBits.ValueKind); in getValueKind()
449 void setValueKind(ExprValueKind Cat) { ExprBits.ValueKind = Cat; } in setValueKind()
1126 APValue::ValueKind getResultAPValueKind() const { in getResultAPValueKind()
1127 return static_cast<APValue::ValueKind>(ConstantExprBits.APValueKind); in getResultAPValueKind()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DAMDGPUMetadata.h72 enum class ValueKind : uint8_t { enum
177 constexpr char ValueKind[] = "ValueKind"; variable
211 ValueKind mValueKind = ValueKind::Unknown;
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DValue.h100 explicit BoolValue(Kind ValueKind, const Formula &F) in BoolValue() argument
101 : Value(ValueKind), F(&F) {} in BoolValue()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1229 void CodeGenPGO::valueProfile(CGBuilderTy &Builder, uint32_t ValueKind, in valueProfile() argument
1249 Builder.getInt32(ValueKind), in valueProfile()
1250 Builder.getInt32(NumValueSites[ValueKind]++) in valueProfile()
1266 if (NumValueSites[ValueKind] >= ProfRecord->getNumValueSites(ValueKind)) in valueProfile()
1270 (llvm::InstrProfValueKind)ValueKind, in valueProfile()
1271 NumValueSites[ValueKind]); in valueProfile()
1273 NumValueSites[ValueKind]++; in valueProfile()
H A DCodeGenPGO.h93 void valueProfile(CGBuilderTy &Builder, uint32_t ValueKind,
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp62 ValueKind(Expr::getValueKindForType(destType)), in CastOperation()
90 ExprValueKind ValueKind; member
325 Context, Op.ResultType, Op.ValueKind, Op.Kind, Op.SrcExpr.get(), in BuildCXXNamedCast()
380 Context, Op.ResultType, Op.ValueKind, Op.Kind, Op.SrcExpr.get(), in BuildCXXNamedCast()
783 if (ValueKind == VK_PRValue) in CheckDynamicCast()
958 if (ValueKind == VK_PRValue) in CheckConstCast()
1257 if (ValueKind == VK_PRValue && !DestType->isRecordType() && in CheckStaticCast()
2718 ValueKind, BasePath); in CheckCXXCStyleCast()
2753 if (ValueKind == VK_PRValue && !DestType->isRecordType() && in CheckCXXCStyleCast()
2917 ValueKind, BasePath); in CheckCStyleCast()
[all …]
H A DSemaStmtAsm.cpp65 auto ValueKind = ExprUnderCast->getValueKind(); in removeLValueToRValueCast() local
67 E->setValueKind(ValueKind); in removeLValueToRValueCast()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingValue.c61 uint32_t ValueKind, uint16_t NumValueSites) { in __llvm_profile_set_num_value_sites() argument
69 *((uint16_t *)&Data->NumValueSites[ValueKind]) = NumValueSites; in __llvm_profile_set_num_value_sites()
H A DInstrProfiling.h29 enum ValueKind { enum
H A DInstrProfilingInternal.h143 struct ValueProfNode *(*GetValueData)(uint32_t ValueKind, uint32_t Site,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp336 const DataLayout &DL, Type *Ty, Align Alignment, StringRef ValueKind, in emitKernelArg() argument
351 Arg[".value_kind"] = Arg.getDocument()->getNode(ValueKind, /*Copy=*/true); in emitKernelArg()
358 if (ValueKind == "global_buffer" || ValueKind == "dynamic_shared_pointer") in emitKernelArg()
H A DAMDGPUHSAMetadataStreamer.h105 StringRef ValueKind, unsigned &Offset,
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp109 ExprValueKind ValueKind = VK_LValue);
227 ExprValueKind ValueKind) { in makeMemberExpression() argument
234 /* TemplateArgumentListInfo=*/ nullptr, MemberDecl->getType(), ValueKind, in makeMemberExpression()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp797 uint64_t ValueKind = Ind->getValueKind()->getZExtValue(); in computeNumValueSiteCounts() local
800 PD.NumValueSites[ValueKind] = in computeNumValueSiteCounts()
801 std::max(PD.NumValueSites[ValueKind], (uint32_t)(Index + 1)); in computeNumValueSiteCounts()
817 uint64_t ValueKind = Ind->getValueKind()->getZExtValue(); in lowerValueProfileInst() local
819 for (uint32_t Kind = IPVK_First; Kind < ValueKind; ++Kind) in lowerValueProfileInst()
/freebsd-14.2/contrib/llvm-project/compiler-rt/include/profile/
H A DInstrProfData.inc584 * Extract value profile data of a function for the profile kind \c ValueKind
590 uint32_t ValueKind, uint32_t NumValueSites) {
593 This->Kind = ValueKind;
598 uint32_t ND = Closure->GetNumValueDataForSite(Record, ValueKind, S);
600 Closure->GetValueForSite(Record, DstVD, ValueKind, S);

12