Home
last modified time | relevance | path

Searched refs:ArrTy (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DPatternInit.cpp65 auto *ArrTy = cast<llvm::ArrayType>(Ty); in initializationPatternFor() local
67 ArrTy->getNumElements(), in initializationPatternFor()
68 initializationPatternFor(CGM, ArrTy->getElementType())); in initializationPatternFor()
69 return llvm::ConstantArray::get(ArrTy, Element); in initializationPatternFor()
H A DCGCall.cpp3064 if (const auto *ArrTy = in EmitFunctionProlog() local
3070 if (ArrTy->getSizeModifier() == ArraySizeModifier::Static) { in EmitFunctionProlog()
3071 QualType ETy = ArrTy->getElementType(); in EmitFunctionProlog()
3075 uint64_t ArrSize = ArrTy->getZExtSize(); in EmitFunctionProlog()
3089 } else if (const auto *ArrTy = in EmitFunctionProlog() local
3094 if (ArrTy->getSizeModifier() == ArraySizeModifier::Static) { in EmitFunctionProlog()
3095 QualType ETy = ArrTy->getElementType(); in EmitFunctionProlog()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DValue.cpp138 if (const auto *ArrTy = in Value() local
140 DtorTy = ArrTy->getElementType(); in Value()
143 ArrSize *= ArrTy->getSize(); in Value()
144 ArrTy = llvm::dyn_cast<ConstantArrayType>( in Value()
145 ArrTy->getElementType().getTypePtr()); in Value()
146 } while (ArrTy); in Value()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp115 const ArrayType *ArrTy = VD->getType()->getAsArrayTypeUnsafe(); in visitVariable() local
116 if (ArrTy == nullptr) in visitVariable()
119 if (const ConstantArrayType *CArrTy = dyn_cast<ConstantArrayType>(ArrTy)) in visitVariable()
123 const RecordType *RT = ArrTy->getElementType()->getAs<RecordType>(); in visitVariable()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILResource.cpp61 if (auto *ArrTy = dyn_cast<ArrayType>(GV->getValueType())) in ResourceBase() local
62 RangeSize = ArrTy->getNumElements(); in ResourceBase()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h354 while (ArrayType *ArrTy = dyn_cast<ArrayType>(Ty))
355 Ty = ArrTy->getElementType();
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DAArch64.cpp554 if (llvm::ArrayType *ArrTy = dyn_cast<llvm::ArrayType>(BaseTy)) { in EmitAAPCSVAArg() local
555 BaseTy = ArrTy->getElementType(); in EmitAAPCSVAArg()
556 NumRegs = ArrTy->getNumElements(); in EmitAAPCSVAArg()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp970 if (auto *ArrTy = dyn_cast<ArrayType>(ElemTy)) { in getGEPIndexForOffset() local
971 ElemTy = ArrTy->getElementType(); in getGEPIndexForOffset()
H A DAttributes.cpp2093 while (ArrayType *ArrTy = dyn_cast<ArrayType>(Ty)) in isNoFPClassCompatibleType() local
2094 Ty = ArrTy->getElementType(); in isNoFPClassCompatibleType()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp622 auto *ArrTy = cast<ArrayType>(C->getType()); in getConstantValue() local
623 Type *ElemTy = ArrTy->getElementType(); in getConstantValue()
624 unsigned int elemNum = ArrTy->getNumElements(); in getConstantValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp543 } else if (auto *ArrTy = dyn_cast<ArrayType>(OrigTy)) { in deduceNestedTypeHelper() local
545 Type *OpTy = ArrTy->getElementType(); in deduceNestedTypeHelper()
556 Type *NewTy = ArrayType::get(Ty, ArrTy->getNumElements()); in deduceNestedTypeHelper()
H A DSPIRVInstructionSelector.cpp848 SPIRVType *ArrTy = GR.getOrCreateSPIRVArrayType(ValTy, Num, I, TII); in selectMemOperation() local
849 Register Const = GR.getOrCreateConstIntArray(Val, Num, I, ArrTy, TII); in selectMemOperation()
851 ArrTy, I, TII, SPIRV::StorageClass::UniformConstant); in selectMemOperation()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1612 auto *ArrTy = ArrayType::get(Part->getType(), Args.size()); in setCoroInfo() local
1614 auto *ConstVal = ConstantArray::get(ArrTy, Args); in setCoroInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerBufferFatPointers.cpp324 if (auto *ArrTy = dyn_cast<ArrayType>(Ty)) in remapTypeImpl() local
325 return *Entry = ArrayType::get(ElementTypes[0], ArrTy->getNumElements()); in remapTypeImpl()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp1212 QualType ArrTy = VisitConstantArrayType(T); in VisitArrayParameterType() local
1213 if (ArrTy.isNull()) in VisitArrayParameterType()
1216 return Ctx.getArrayParameterType(ArrTy); in VisitArrayParameterType()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp4274 auto *ArrTy = S.Context.getAsArrayType(AdjustedParamType); in DeduceFromInitializerList() local
4275 if (ArrTy) in DeduceFromInitializerList()
4276 ElTy = ArrTy->getElementType(); in DeduceFromInitializerList()
4303 if (auto *DependentArrTy = dyn_cast_or_null<DependentSizedArrayType>(ArrTy)) { in DeduceFromInitializerList()
H A DSemaExpr.cpp16536 QualType ArrTy = Context.getStringLiteralArrayType(Context.CharTy, 0); in ActOnSourceLocExpr() local
16538 Context.getPointerType(ArrTy->getAsArrayTypeUnsafe()->getElementType()); in ActOnSourceLocExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp4142 if (ArrayType *ArrTy = dyn_cast<ArrayType>(Ty)) { in stripAggregateTypeWrapping() local
4143 InnerTy = ArrTy->getElementType(); in stripAggregateTypeWrapping()