Home
last modified time | relevance | path

Searched refs:Ty (Results 1 – 25 of 827) sorted by relevance

12345678910>>...34

/llvm-project-15.0.7/llvm/unittests/AsmParser/
H A DAsmParserTest.cpp177 Type *Ty; in TEST() local
179 ASSERT_TRUE(Ty); in TEST()
185 ASSERT_TRUE(Ty); in TEST()
191 ASSERT_TRUE(Ty); in TEST()
195 ASSERT_TRUE(Ty); in TEST()
201 ASSERT_TRUE(Ty); in TEST()
215 ASSERT_TRUE(Ty); in TEST()
229 ASSERT_TRUE(Ty); in TEST()
242 ASSERT_TRUE(Ty); in TEST()
251 ASSERT_TRUE(Ty); in TEST()
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/DeadArgElim/
H A Dreturned.ll8 define internal %Ty* @test1(%Ty* %this) {
25 define internal %Ty* @test3(%Ty* %this) {
26 store volatile %Ty* %this, %Ty** @dummy
34 store volatile %Ty* %this, %Ty** @dummy
41 define internal %Ty* @test5(%Ty* %this) {
42 store volatile %Ty* %this, %Ty** @dummy
52 define %Ty* @caller(%Ty* %this) {
53 %1 = call %Ty* @test1(%Ty* %this)
54 %2 = call %Ty* @test2(%Ty* %this)
55 %3 = call %Ty* @test3(%Ty* %this)
[all …]
/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-template-decls-json.cpp3 template <typename Ty>
4 void a(Ty);
6 template <typename... Ty>
7 void b(Ty...);
10 void c(Ty);
16 void d(Ty, Uy<Ty>);
18 template <class Ty>
19 void e(Ty);
25 void g(Ty);
40 struct S<Ty, int> {};
[all …]
H A Dast-dump-template-decls.cpp11 template <typename Ty>
14 void a(Ty);
16 template <typename... Ty>
19 void b(Ty...);
25 void c(Ty, Uy);
38 void d(Ty, Uy<Ty>);
40 template <class Ty>
43 void e(Ty);
54 void g(Ty);
84 struct S<Ty, int> {};
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DLowLevelType.cpp21 if (auto VTy = dyn_cast<VectorType>(&Ty)) { in getLLTForType()
29 if (auto PTy = dyn_cast<PointerType>(&Ty)) { in getLLTForType()
34 if (Ty.isSized()) { in getLLTForType()
45 MVT llvm::getMVTForLLT(LLT Ty) { in getMVTForLLT() argument
46 if (!Ty.isVector()) in getMVTForLLT()
51 Ty.getNumElements()); in getMVTForLLT()
56 if (Ty.isVector()) { in getApproximateEVTForLLT()
64 LLT llvm::getLLTForMVT(MVT Ty) { in getLLTForMVT() argument
65 if (!Ty.isVector()) in getLLTForMVT()
66 return LLT::scalar(Ty.getSizeInBits()); in getLLTForMVT()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86LegalizerInfo.cpp123 for (auto Ty : {s8, s16, s32}) in setLegalizerInfo32bit()
180 for (auto Ty : {s8, s16, s32}) { in setLegalizerInfo32bit()
303 for (auto Ty : {s32, v4s32}) in setLegalizerInfoSSE1()
343 for (auto Ty : {s64, v2s64}) in setLegalizerInfoSSE2()
363 for (const auto &Ty : in setLegalizerInfoSSE2()
420 for (const auto &Ty : in setLegalizerInfoAVX()
426 for (const auto &Ty : in setLegalizerInfoAVX()
454 for (auto Ty : {v16s16, v8s32}) in setLegalizerInfoAVX2()
514 for (auto Ty : {v4s32, v8s32}) in setLegalizerInfoAVX512()
535 for (auto Ty : {v2s64, v4s64}) in setLegalizerInfoAVX512DQ()
[all …]
/llvm-project-15.0.7/openmp/libomptarget/include/
H A DExclusiveAccess.h19 template <typename Ty> struct Accessor;
26 using AccessorTy = Accessor<Ty>;
34 Ty Obj;
36 friend struct Accessor<Ty>;
64 Ty &operator*() {
69 Ty *operator->() {
90 ProtectedObj<Ty> *Ptr;
93 template <typename Ty>
94 Accessor<Ty> ProtectedObj<Ty>::getExclusiveAccessor(bool DoNotGetAccess) {
96 return Accessor<Ty>();
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DTargetInfo.cpp762 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType()
899 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType()
1824 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType()
3761 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType()
4088 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
4633 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType()
5318 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType()
5753 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType()
6627 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType()
7435 if (Ty->isFloatTy() || Ty->isDoubleTy() || Ty->isFP128Ty()) { in testFPKind()
[all …]
H A DPatternInit.cpp36 if (Ty->isIntOrIntVectorTy()) { in initializationPatternFor()
38 cast<llvm::IntegerType>(Ty->getScalarType())->getBitWidth(); in initializationPatternFor()
40 return llvm::ConstantInt::get(Ty, IntValue); in initializationPatternFor()
44 if (Ty->isPtrOrPtrVectorTy()) { in initializationPatternFor()
45 auto *PtrTy = cast<llvm::PointerType>(Ty->getScalarType()); in initializationPatternFor()
54 if (Ty->isFPOrFPVectorTy()) { in initializationPatternFor()
56 Ty->getScalarType()->getFltSemantics()); in initializationPatternFor()
60 return llvm::ConstantFP::getQNaN(Ty, NegativeNaN, &Payload); in initializationPatternFor()
62 if (Ty->isArrayTy()) { in initializationPatternFor()
65 auto *ArrTy = cast<llvm::ArrayType>(Ty); in initializationPatternFor()
[all …]
H A DCodeGenTypes.cpp84 Ty->setName(OS.str()); in addRecordTypeName()
124 RecordDeclTypes.find(Ty); in isRecordLayoutComplete()
392 RecordsBeingLaidOut.erase(Ty); in ConvertFunctionTypeInternal()
412 return Ty; in ConvertType()
416 return Ty; in ConvertType()
431 Ty->isBuiltinType() || in ConvertType()
435 TypeCache.find(Ty); in ConvertType()
448 switch (Ty->getTypeClass()) { in ConvertType()
862 return Ty; in ConvertRecordDeclType()
867 return Ty; in ConvertRecordDeclType()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp862 return V ? getTrue(Ty) : getFalse(Ty); in getBool()
890 return get(Ty->getContext(), APInt(Ty->getBitWidth(), V, isSigned)); in get()
914 return get(Ty->getContext(), APInt(Ty->getBitWidth(), Str, radix)); in get()
1244 return Ty->getContext().pImpl->ArrayConstants.getOrCreate(Ty, V); in get()
1352 return Ty->getContext().pImpl->VectorConstants.getOrCreate(Ty, V); in get()
1590 assert((Ty->isStructTy() || Ty->isArrayTy() || Ty->isVectorTy()) && in get()
1594 Ty->getContext().pImpl->CAZConstants[Ty]; in get()
1698 Ty->getContext().pImpl->CPNConstants[Ty]; in get()
2013 assert((Ty->isIntOrIntVectorTy() || Ty->isPtrOrPtrVectorTy()) && in getPointerCast()
2497 auto GTI = gep_type_begin(Ty, Idxs), GTE = gep_type_end(Ty, Idxs); in getGetElementPtr()
[all …]
H A DInstructions.cpp559 init(Ty, Func, Name); in CallInst()
566 init(Ty, Func, Name); in CallInst()
1784 return Ty; in getIndexedTypeInternal()
1786 Ty = GetElementPtrInst::getTypeAtIndex(Ty, V); in getIndexedTypeInternal()
1787 if (!Ty) in getIndexedTypeInternal()
1788 return Ty; in getIndexedTypeInternal()
1790 return Ty; in getIndexedTypeInternal()
3281 assert((Ty->isIntOrIntVectorTy() || Ty->isPtrOrPtrVectorTy()) && in CreatePointerCast()
3300 assert((Ty->isIntOrIntVectorTy() || Ty->isPtrOrPtrVectorTy()) && in CreatePointerCast()
3315 Value *S, Type *Ty, in CreatePointerBitCastOrAddrSpaceCast() argument
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp50 switch (Ty->getTypeID()) { in executeFNegInst()
69 if (Ty->isVectorTy()) { in visitUnaryOperator()
110 switch (Ty->getTypeID()) { in executeFAddInst()
121 switch (Ty->getTypeID()) { in executeFSubInst()
132 switch (Ty->getTypeID()) { in executeFMulInst()
143 switch (Ty->getTypeID()) { in executeFDivInst()
448 if (Ty->isVectorTy()) in executeFCMP_ONE()
591 if(Ty->isVectorTy()) { in executeFCMP_ORD()
622 if(Ty->isVectorTy()) { in executeFCMP_UNO()
744 if (Ty->isVectorTy()) { in visitBinaryOperator()
[all …]
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DRuntimeDebugBuilder.cpp105 if (Ty->isFloatingPointTy()) in isPrintable()
108 if (Ty->isIntegerTy()) in isPrintable()
111 if (isa<PointerType>(Ty)) in isPrintable()
123 Type *Ty = Val->getType(); in prepareValuesForPrinting() local
126 if (!Ty->isDoubleTy()) in prepareValuesForPrinting()
144 Ty = Val->getType(); in prepareValuesForPrinting()
148 else if (Ty->isIntegerTy()) in prepareValuesForPrinting()
196 Type *Ty = Val->getType(); in createGPUPrinterT() local
199 if (!Ty->isDoubleTy()) in createGPUPrinterT()
222 Ty = Val->getType(); in createGPUPrinterT()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDataLayout.h405 auto *PTy = dyn_cast<PointerType>(Ty); in isNonIntegralPointerType()
438 return getPointerTypeSizeInBits(Ty) / 8; in getPointerTypeSize()
487 return 8 * getTypeStoreSize(Ty); in getTypeStoreSizeInBits()
495 return getTypeSizeInBits(Ty) == getTypeStoreSizeInBits(Ty); in typeSizeEqualsStoreSize()
508 return alignTo(getTypeStoreSize(Ty), getABITypeAlignment(Ty)); in getTypeAllocSize()
520 return 8 * getTypeAllocSize(Ty); in getTypeAllocSizeInBits()
528 Align getABITypeAlign(Type *Ty) const;
554 Align getPrefTypeAlign(Type *Ty) const;
675 switch (Ty->getTypeID()) { in getTypeSizeInBits()
681 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits()
[all …]
H A DConstants.h59 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {} in ConstantData() argument
94 static Constant *getTrue(Type *Ty);
95 static Constant *getFalse(Type *Ty);
96 static Constant *getBool(Type *Ty, bool V);
262 ConstantFP(Type *Ty, const APFloat &V);
293 static Constant *getNegativeZero(Type *Ty) { return getZero(Ty, true); } in getNegativeZero() argument
340 explicit ConstantAggregateZero(Type *Ty) in ConstantAggregateZero() argument
714 return getImpl(Data, Ty);
786 return getImpl(Data, Ty);
996 static Constant *getAlignOf(Type *Ty);
[all …]
/llvm-project-15.0.7/clang/test/Misc/
H A Dinteger-literal-printing.cpp15 template <> struct Type3Helper<boolTy::b> { typedef boolTy Ty; }; typedef
16 template <boolTy T, typename Type3Helper<T>::Ty U> struct Type3 {};
24 template <> struct Type4Helper<charTy::c> { typedef charTy Ty; }; typedef
25 template <charTy T, typename Type4Helper<T>::Ty U> struct Type4 {};
32 template <> struct Type5Helper<scharTy::c> { typedef scharTy Ty; }; typedef
33 template <scharTy T, typename Type5Helper<T>::Ty U> struct Type5 {};
40 template <> struct Type6Helper<ucharTy::c> { typedef ucharTy Ty; }; typedef
41 template <ucharTy T, typename Type6Helper<T>::Ty U> struct Type6 {};
48 template <> struct Type7Helper<wcharTy::c> { typedef wcharTy Ty; }; typedef
49 template <wcharTy T, typename Type7Helper<T>::Ty U> struct Type7 {};
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsISelLowering.h385 SDValue GOT = DAG.getNode(MipsISD::Wrapper, DL, Ty, getGlobalReg(DAG, Ty), in getAddrLocal()
388 DAG.getLoad(Ty, DL, DAG.getEntryNode(), GOT, in getAddrLocal()
391 SDValue Lo = DAG.getNode(MipsISD::Lo, DL, Ty, in getAddrLocal()
393 return DAG.getNode(ISD::ADD, DL, Ty, Load, Lo); in getAddrLocal()
404 SDValue Tgt = DAG.getNode(MipsISD::Wrapper, DL, Ty, getGlobalReg(DAG, Ty), in getAddrGlobal()
420 Hi = DAG.getNode(ISD::ADD, DL, Ty, Hi, getGlobalReg(DAG, Ty)); in getAddrGlobalLargeGOT()
437 return DAG.getNode(ISD::ADD, DL, Ty, in getAddrNonPIC()
456 DAG.getNode(MipsISD::Highest, DL, Ty, in getAddrNonPICSym64()
460 DAG.getNode(ISD::ADD, DL, Ty, Highest, in getAddrNonPICSym64()
468 return DAG.getNode(ISD::ADD, DL, Ty, Shift2, in getAddrNonPICSym64()
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp765 if (C->isNullValue() && !Ty->isX86_MMXTy() && !Ty->isX86_AMXTy()) in ConstantFoldLoadFromUniformValue()
768 (Ty->isIntOrIntVectorTy() || Ty->isFPOrFPVectorTy())) in ConstantFoldLoadFromUniformValue()
1376 Ty->getContext(), in FlushFPConstant()
1734 if (Ty->isHalfTy() || Ty->isFloatTy()) { in GetConstantFoldFPValue()
1740 if (Ty->isDoubleTy()) in GetConstantFoldFPValue()
1880 if (Ty->isBFloatTy() || Ty->isHalfTy() || Ty->isFloatTy() || Ty->isDoubleTy()) in getValueAsDouble()
2035 if (!Ty->isHalfTy() && !Ty->isFloatTy() && !Ty->isDoubleTy()) in ConstantFoldScalarCall1()
2521 if (!Ty->isHalfTy() && !Ty->isFloatTy() && !Ty->isDoubleTy()) in ConstantFoldScalarCall2()
2579 if (!Ty->isHalfTy() && !Ty->isFloatTy() && !Ty->isDoubleTy()) in ConstantFoldScalarCall2()
3294 if (Ty->isDoubleTy() || Ty->isFloatTy() || Ty->isHalfTy()) in isMathLibCallNoop()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp28 assert(Ty->isIntegerTy() && in getIntImmCost()
45 assert(Ty->isIntegerTy() && in getIntImmCostInst()
99 return getIntImmCost(Imm, Ty, CostKind); in getIntImmCostInst()
311 if (isa<ScalableVectorType>(Ty)) { in getMaxVLFor()
332 if (Ty->getElementType()->isIntegerTy(1)) in getMinMaxReductionCost()
339 unsigned VL = getMaxVLFor(Ty); in getMinMaxReductionCost()
362 if (Ty->getElementType()->isIntegerTy(1)) in getArithmeticReductionCost()
368 unsigned VL = getMaxVLFor(Ty); in getArithmeticReductionCost()
458 TypeSize Size = Ty->getPrimitiveSizeInBits(); in getRegUsageForType()
459 if (Ty->isVectorTy()) { in getRegUsageForType()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DNonnullGlobalConstantsChecker.cpp52 bool isNonnullType(QualType Ty) const;
105 QualType Ty = Decl->getType(); in isGlobalConstString() local
106 bool HasConst = Ty.isConstQualified(); in isGlobalConstString()
107 if (isNonnullType(Ty) && HasConst) in isGlobalConstString()
111 while (const Type *T = Ty.getTypePtr()) { in isGlobalConstString()
113 Ty = TT->getDecl()->getUnderlyingType(); in isGlobalConstString()
116 HasConst = HasConst || Ty.isConstQualified(); in isGlobalConstString()
117 if (isNonnullType(Ty) && HasConst) in isGlobalConstString()
122 Ty = AT->getModifiedType(); in isGlobalConstString()
133 if (Ty->isPointerType() && Ty->getPointeeType()->isCharType()) in isNonnullType()
[all …]
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DLowLevelTypeTest.cpp26 const LLT Ty = LLT::scalar(S); in TEST() local
29 ASSERT_TRUE(Ty.isValid()); in TEST()
30 ASSERT_TRUE(Ty.isScalar()); in TEST()
32 ASSERT_FALSE(Ty.isPointer()); in TEST()
33 ASSERT_FALSE(Ty.isVector()); in TEST()
40 EXPECT_TRUE(Ty == Ty); in TEST()
41 EXPECT_FALSE(Ty != Ty); in TEST()
278 EXPECT_TRUE(Ty == Ty); in TEST()
279 EXPECT_FALSE(Ty != Ty); in TEST()
294 const LLT Ty; in TEST() local
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp1666 addToUDTs(Ty); in lowerTypeAlias()
1837 (Ty->getName() == "long int" || Ty->getName() == "long")) in lowerTypeBasic()
1843 (Ty->getName() == "wchar_t" || Ty->getName() == "__wchar_t")) in lowerTypeBasic()
1930 getTypeIndex(Ty->getBaseType(), IsPMF ? Ty->getClassType() : nullptr); in lowerTypeMemberPointer()
2320 Ty = cast<DIDerivedType>(Ty)->getBaseType(); in collectMemberInfo()
2374 return Ty->getName().empty() && Ty->getIdentifier().empty() && in shouldAlwaysEmitCompleteClassType()
2439 addToUDTs(Ty); in lowerCompleteTypeClass()
2479 addToUDTs(Ty); in lowerCompleteTypeUnion()
2632 if (!Ty) in getTypeIndex()
2684 if (!Ty) in getCompleteTypeIndex()
[all …]
/llvm-project-15.0.7/openmp/libomptarget/DeviceRTL/include/
H A DState.h227 template <typename Ty, ValueKind Kind> struct Value {
249 assert_eq(const Ty &V, IdentTy *Ident = nullptr,
255 __attribute__((flatten, always_inline)) Ty &
267 __attribute__((flatten, always_inline)) Ty &set(Ty UpdateVal, in set()
279 template <typename Ty, ValueKind Kind> struct PtrValue {
295 Ty &set(Ty UpdateVal) { in set()
303 template <typename VTy, typename Ty> struct ValueRAII {
304 ValueRAII(VTy &V, Ty NewValue, Ty OldValue, bool Active, IdentTy *Ident,
307 : (Ty *)utils::UndefPtr),
321 Ty *Ptr;
[all …]
/llvm-project-15.0.7/clang/lib/Analysis/
H A DBodyFarm.cpp36 static bool isDispatchBlock(QualType Ty) { in isDispatchBlock() argument
182 assert(Ty->isReferenceType()); in makeReferenceCast()
184 C, Ty.getNonReferenceType(), in makeReferenceCast()
192 if (Arg->getType() == Ty) in makeIntegralCast()
264 QualType Ty = Callback->getType(); in create_call_once_funcptr_call() local
267 if (Ty->isRValueReferenceType()) { in create_call_once_funcptr_call()
272 Ty = C.getPointerType(Ty.getNonReferenceType()); in create_call_once_funcptr_call()
524 QualType Ty = Block->getType(); in create_dispatch_once() local
525 if (!isDispatchBlock(Ty)) in create_dispatch_once()
598 QualType Ty = PV->getType(); in create_dispatch_sync() local
[all …]

12345678910>>...34