Home
last modified time | relevance | path

Searched refs:ArgType (Results 1 – 25 of 87) sorted by relevance

1234

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DScanfFormatString.cpp18 using clang::analyze_format_string::ArgType;
226 ArgType ScanfSpecifier::getArgType(ASTContext &Ctx) const { in getArgType()
230 return ArgType::Invalid(); in getArgType()
239 return ArgType::PtrTo(Ctx.IntTy); in getArgType()
241 return ArgType::PtrTo(ArgType::AnyCharTy); in getArgType()
243 return ArgType::PtrTo(Ctx.ShortTy); in getArgType()
245 return ArgType::PtrTo(Ctx.LongTy); in getArgType()
248 return ArgType::PtrTo(Ctx.LongLongTy); in getArgType()
250 return ArgType::PtrTo(ArgType(Ctx.LongLongTy, "__int64")); in getArgType()
252 return ArgType::PtrTo(ArgType(Ctx.getIntMaxType(), "intmax_t")); in getArgType()
[all …]
H A DPrintfFormatString.cpp20 using clang::analyze_format_string::ArgType;
507 ArgType PrintfSpecifier::getScalarArgType(ASTContext &Ctx, in getScalarArgType()
515 return ArgType(ArgType::WIntTy, "wint_t"); in getScalarArgType()
521 return ArgType::Invalid(); in getScalarArgType()
533 return ArgType(Ctx.IntTy, "__int32"); in getScalarArgType()
535 return ArgType::AnyCharTy; in getScalarArgType()
542 return ArgType(Ctx.LongLongTy, "__int64"); in getScalarArgType()
544 return ArgType(Ctx.getIntMaxType(), "intmax_t"); in getScalarArgType()
546 return ArgType::makeSizeT(ArgType(Ctx.getSignedSizeType(), "ssize_t")); in getScalarArgType()
549 ? ArgType(Ctx.LongLongTy, "__int64") in getScalarArgType()
[all …]
H A DFormatString.cpp20 using clang::analyze_format_string::ArgType;
323 clang::analyze_format_string::ArgType::MatchKind
324 ArgType::matchesType(ASTContext &C, QualType argTy) const { in matchesType()
598 static analyze_format_string::ArgType::MatchKind
600 using MK = analyze_format_string::ArgType::MatchKind; in integerTypeMatch()
614 analyze_format_string::ArgType::MatchKind
615 ArgType::matchesArgType(ASTContext &C, const ArgType &Other) const { in matchesArgType()
616 using AK = analyze_format_string::ArgType::Kind; in matchesArgType()
627 ArgType Left = *this; in matchesArgType()
629 ArgType Right = Other; in matchesArgType()
[all …]
H A DASTDiagnostic.cpp619 QualType ArgType; member
689 FlatTree[CurrentNode].FromArgInfo.ArgType = FromType; in SetTypeDiff()
690 FlatTree[CurrentNode].ToArgInfo.ArgType = ToType; in SetTypeDiff()
723 FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType; in SetIntegerDiff()
724 FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType; in SetIntegerDiff()
759 FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType; in SetFromDeclarationAndToIntegerDiff()
772 FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType; in SetFromIntegerAndToDeclarationDiff()
852 FromType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetTypeDiff()
853 ToType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetTypeDiff()
877 FromIntType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetIntegerDiff()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibFunc.cpp387 P.ArgType = AMDGPULibFunc::U32; break; in getNextParam()
389 P.ArgType = AMDGPULibFunc::I32; P.VectorSize = 4; break; in getNextParam()
391 P.ArgType = AMDGPULibFunc::U32; P.VectorSize = 4; break; in getNextParam()
393 P.ArgType = AMDGPULibFunc::F32; P.VectorSize = 4; break; in getNextParam()
395 P.ArgType = AMDGPULibFunc::U64; break; in getNextParam()
397 P.ArgType = AMDGPULibFunc::EVENT; break; in getNextParam()
399 P.ArgType = AMDGPULibFunc::SAMPLER; break; in getNextParam()
426 P.ArgType = AMDGPULibFunc::I32; break; in getNextParam()
428 P.ArgType = AMDGPULibFunc::U32; break; in getNextParam()
431 P.ArgType &= ~AMDGPULibFunc::BASE_TYPE_MASK; in getNextParam()
[all …]
H A DAMDGPUPrintfRuntimeBinding.cpp178 Type *ArgType = Arg->getType(); in lowerPrintfForGpu() local
179 unsigned ArgSize = TD->getTypeAllocSize(ArgType); in lowerPrintfForGpu()
186 if (auto *VecType = dyn_cast<VectorType>(ArgType)) in lowerPrintfForGpu()
191 if (ArgType->isFloatingPointTy()) { in lowerPrintfForGpu()
194 IntegerType::getIntNTy(Ctx, ArgType->getPrimitiveSizeInBits())); in lowerPrintfForGpu()
204 ArgType = Arg->getType(); in lowerPrintfForGpu()
205 ArgSize = TD->getTypeAllocSize(ArgType); in lowerPrintfForGpu()
219 if (shouldPrintAsStr(OpConvSpecifiers[ArgCount - 1], ArgType)) in lowerPrintfForGpu()
223 << " for type: " << *ArgType << '\n'); in lowerPrintfForGpu()
333 Type *ArgType = Arg->getType(); in lowerPrintfForGpu() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
H A DDIAFrameData.cpp18 template <typename ArgType>
19 ArgType
21 HRESULT (__stdcall IDiaFrameData::*Method)(ArgType *)) { in PrivateGetDIAValue() argument
22 ArgType Value; in PrivateGetDIAValue()
24 return static_cast<ArgType>(Value); in PrivateGetDIAValue()
26 return ArgType(); in PrivateGetDIAValue()
H A DDIASectionContrib.cpp30 template <typename ArgType>
31 ArgType
33 HRESULT (__stdcall IDiaSectionContrib::*Method)(ArgType *)) { in PrivateGetDIAValue() argument
34 ArgType Value; in PrivateGetDIAValue()
36 return static_cast<ArgType>(Value); in PrivateGetDIAValue()
38 return ArgType(); in PrivateGetDIAValue()
H A DDIARawSymbol.cpp95 template <typename ArgType>
96 ArgType PrivateGetDIAValue(IDiaSymbol *Symbol, in PrivateGetDIAValue()
97 HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) { in PrivateGetDIAValue() argument
98 ArgType Value; in PrivateGetDIAValue()
100 return static_cast<ArgType>(Value); in PrivateGetDIAValue()
102 return ArgType(); in PrivateGetDIAValue()
105 template <typename ArgType, typename RetType>
107 HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) { in PrivateGetDIAValue() argument
108 ArgType Value; in PrivateGetDIAValue()
135 template <typename PrintType, typename ArgType>
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DFormatString.h265 class ArgType {
306 ArgType(Kind K = UnknownTy, const char *N = nullptr) : K(K), Name(N) {} in K()
307 ArgType(QualType T, const char *N = nullptr) : K(SpecificTy), T(T), Name(N) {} in K()
308 ArgType(CanQualType T) : K(SpecificTy), T(T) {} in ArgType() function
310 static ArgType Invalid() { return ArgType(InvalidTy); } in Invalid()
318 static ArgType PtrTo(const ArgType& A) { in PtrTo()
320 ArgType Res = A; in PtrTo()
326 static ArgType makeSizeT(const ArgType &A) { in makeSizeT()
327 ArgType Res = A; in makeSizeT()
334 static ArgType makePtrdiffT(const ArgType &A) { in makePtrdiffT()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DOpcodes.td39 class ArgType { string Name = ?; bit AsRef = false; }
40 def ArgSint8 : ArgType { let Name = "int8_t"; }
41 def ArgUint8 : ArgType { let Name = "uint8_t"; }
42 def ArgSint16 : ArgType { let Name = "int16_t"; }
43 def ArgUint16 : ArgType { let Name = "uint16_t"; }
44 def ArgSint32 : ArgType { let Name = "int32_t"; }
45 def ArgUint32 : ArgType { let Name = "uint32_t"; }
46 def ArgSint64 : ArgType { let Name = "int64_t"; }
47 def ArgUint64 : ArgType { let Name = "uint64_t"; }
48 def ArgIntAP : ArgType { let Name = "IntegralAP<false>"; let AsRef = true; }
[all …]
/freebsd/sys/contrib/dev/acpica/components/parser/
H A Dpsargs.c542 UINT32 ArgType, in AcpiPsGetNextSimpleArg() argument
550 ACPI_FUNCTION_TRACE_U32 (PsGetNextSimpleArg, ArgType); in AcpiPsGetNextSimpleArg()
553 switch (ArgType) in AcpiPsGetNextSimpleArg()
617 ACPI_ERROR ((AE_INFO, "Invalid ArgType 0x%X", ArgType)); in AcpiPsGetNextSimpleArg()
937 UINT32 ArgType, in AcpiPsGetNextArg() argument
952 AcpiUtGetArgumentTypeName (ArgType), ArgType)); in AcpiPsGetNextArg()
954 switch (ArgType) in AcpiPsGetNextArg()
971 AcpiPsGetNextSimpleArg (ParserState, ArgType, Arg); in AcpiPsGetNextArg()
1047 AcpiUtGetArgumentTypeName (ArgType), ArgType)); in AcpiPsGetNextArg()
1084 AcpiUtGetArgumentTypeName (ArgType), ArgType)); in AcpiPsGetNextArg()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBPF.cpp41 QualType ArgType = Arg->getType(); in isValidPreserveTypeInfoArg() local
42 if (ArgType->getAsPlaceholderType()) in isValidPreserveTypeInfoArg()
55 if (ArgType->getAs<TypedefType>()) in isValidPreserveTypeInfoArg()
59 const Type *Ty = ArgType->getUnqualifiedDesugaredType(); in isValidPreserveTypeInfoArg()
72 QualType ArgType = Arg->getType(); in isValidPreserveEnumValueArg() local
73 if (ArgType->getAsPlaceholderType()) in isValidPreserveEnumValueArg()
102 const Type *Ty = ArgType->getUnqualifiedDesugaredType(); in isValidPreserveEnumValueArg()
H A DSemaPPC.cpp43 QualType ArgType = Arg->getType(); in checkAIXMemberAlignment() local
45 ArgType->castAs<RecordType>()->getDecl()->fields()) { in checkAIXMemberAlignment()
217 QualType ArgType = TheCall->getArg(0)->getType(); in CheckPPCBuiltinFunctionCall() local
218 if (ArgType != QualType(Context.FloatTy) && in CheckPPCBuiltinFunctionCall()
219 ArgType != QualType(Context.DoubleTy) && in CheckPPCBuiltinFunctionCall()
220 ArgType != QualType(Context.Float128Ty)) in CheckPPCBuiltinFunctionCall()
238 QualType ArgType = QualType(Context.LongDoubleTy); in CheckPPCBuiltinFunctionCall() local
241 ArgType = QualType(Context.DoubleTy); in CheckPPCBuiltinFunctionCall()
244 ArgType = QualType(Context.FloatTy); in CheckPPCBuiltinFunctionCall()
246 if (TheCall->getArg(I)->getType() != ArgType) in CheckPPCBuiltinFunctionCall()
[all …]
/freebsd/contrib/llvm-project/lldb/utils/TableGen/
H A DLLDBOptionDefEmitter.cpp31 std::string ArgType; member
61 ArgType = A->getValue()->getAsUnquotedString(); in CommandOption()
98 if (!O.ArgType.empty()) { in emitOption()
113 if (!O.ArgType.empty()) in emitOption()
114 OS << "g_argument_table[eArgType" << O.ArgType << "].enum_values"; in emitOption()
131 if (!O.ArgType.empty()) { in emitOption()
132 OS << O.ArgType; in emitOption()
/freebsd/sys/contrib/dev/acpica/components/namespace/
H A Dnsarguments.c181 UINT8 ArgType; in AcpiNsCheckArgumentTypes() local
205 ArgType = METHOD_GET_NEXT_TYPE (ArgTypeList); in AcpiNsCheckArgumentTypes()
210 if ((UserArgType != ArgType) && (ArgType != ACPI_TYPE_ANY)) in AcpiNsCheckArgumentTypes()
216 AcpiUtGetTypeName (ArgType))); in AcpiNsCheckArgumentTypes()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallSet.h236 template <typename ArgType>
237 std::pair<const_iterator, bool> insertImpl(ArgType &&V) { in insertImpl()
238 static_assert(std::is_convertible_v<ArgType, T>, in insertImpl()
241 auto [I, Inserted] = Set.insert(std::forward<ArgType>(V)); in insertImpl()
249 Vector.push_back(std::forward<ArgType>(V)); in insertImpl()
256 return {const_iterator(Set.insert(std::forward<ArgType>(V)).first), true}; in insertImpl()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRawPtrRefCallArgsChecker.cpp125 QualType ArgType = MemberCallExpr->getObjectType().getCanonicalType(); in visitCallExpr() local
126 std::optional<bool> IsUnsafe = isUnsafeType(ArgType); in visitCallExpr()
141 QualType ArgType = (*P)->getType(); in visitCallExpr() local
143 std::optional<bool> IsUncounted = isUnsafePtr(ArgType); in visitCallExpr()
159 auto ArgType = Arg->getType(); in visitCallExpr() local
160 std::optional<bool> IsUncounted = isUnsafePtr(ArgType); in visitCallExpr()
202 auto ArgType = Arg->getType(); in visitObjCMessageExpr() local
203 std::optional<bool> IsUnsafe = isUnsafePtr(ArgType); in visitObjCMessageExpr()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DGlobalISelMatchTableExecutorEmitter.h79 raw_ostream &OS, StringRef TypeIdentifier, StringRef ArgType, in emitCxxPredicateFns() argument
99 << TypeIdentifier << "(unsigned PredicateID, " << ArgType << " " in emitCxxPredicateFns()
181 raw_ostream &OS, StringRef TypeIdentifier, StringRef ArgType,
186 return emitCxxPredicateFns(OS, TypeIdentifier, ArgType, "Imm", "", "",
/freebsd/sys/contrib/dev/acpica/components/utilities/
H A Dutdecode.c762 UINT32 ArgType) in AcpiUtGetArgumentTypeName() argument
765 if (ArgType > ARGP_MAX) in AcpiUtGetArgumentTypeName()
770 return (AcpiGbl_ArgumentType[ArgType]); in AcpiUtGetArgumentTypeName()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp136 Type *ArgType = AI->getType(); in createWrapper() local
139 if (ArgType == ParamType) { in createWrapper()
142 if (CastInst::isBitOrNoopPointerCastable(ArgType, ParamType, DL)) { in createWrapper()
147 } else if (ArgType->isStructTy() || ParamType->isStructTy()) { in createWrapper()
155 << *ParamType << " Got: " << *ArgType << "\n"); in createWrapper()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.cpp1562 const RecTy *ArgType = nullptr; in ParseOperation() local
1568 ArgType = StringRecTy::get(Records); in ParseOperation()
1573 ArgType = DagRecTy::get(Records); in ParseOperation()
1581 ArgType = DagRecTy::get(Records); in ParseOperation()
1585 ArgType = DagRecTy::get(Records); in ParseOperation()
1598 ArgType = IntRecTy::get(Records); in ParseOperation()
1611 ArgType = ItemType; in ParseOperation()
1618 ArgType = ItemType; in ParseOperation()
1622 ArgType = StringRecTy::get(Records); in ParseOperation()
1647 InitList.push_back(ParseValue(CurRec, ArgType)); in ParseOperation()
[all …]
/freebsd/sys/contrib/dev/acpica/compiler/
H A Daslwalks.c285 UINT32 ArgType; in AnOperandTypecheckWalkEnd() local
475 while ((ArgType = GET_CURRENT_ARG_TYPE (RuntimeArgTypes))) in AnOperandTypecheckWalkEnd()
478 RuntimeArgTypes2 |= ArgType; in AnOperandTypecheckWalkEnd()
484 while ((ArgType = GET_CURRENT_ARG_TYPE (RuntimeArgTypes2))) in AnOperandTypecheckWalkEnd()
488 RequiredBtypes = AnMapArgTypeToBtype (ArgType); in AnOperandTypecheckWalkEnd()
507 switch (ArgType) in AnOperandTypecheckWalkEnd()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdVariantChecker.cpp222 const auto &ArgType = Call.getArgSVal(0) in handleStdGetCall() local
228 if (!isStdVariant(ArgType)) in handleStdGetCall()
258 ArgType, TypeOut.getAsIntegral().getSExtValue())) { in handleStdGetCall()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVType.cpp427 LVType *ArgType = getTypeAsType(); in encodeTemplateArgument() local
430 if (ArgType->getIsTypedef()) { in encodeTemplateArgument()
431 LVObject *BaseType = ArgType->getUnderlyingType(); in encodeTemplateArgument()
434 Name.append(std::string(ArgType->getName())); in encodeTemplateArgument()

1234