Home
last modified time | relevance | path

Searched refs:ArgTy (Results 1 – 25 of 98) sorted by relevance

1234

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelArguments.cpp98 Type *ArgTy = Arg.getType(); in runOnFunction() local
99 unsigned Align = DL.getABITypeAlignment(ArgTy); in runOnFunction()
100 unsigned Size = DL.getTypeSizeInBits(ArgTy); in runOnFunction()
101 unsigned AllocSize = DL.getTypeAllocSize(ArgTy); in runOnFunction()
109 if (PointerType *PT = dyn_cast<PointerType>(ArgTy)) { in runOnFunction()
124 VectorType *VT = dyn_cast<VectorType>(ArgTy); in runOnFunction()
133 if (Size < 32 && !ArgTy->isAggregateType()) { // FIXME: Handle aggregate types in runOnFunction()
153 ArgPtr = Builder.CreateBitCast(ArgPtr, ArgTy->getPointerTo(AS), in runOnFunction()
168 if (isa<PointerType>(ArgTy)) { in runOnFunction()
202 if (Size < 32 && !ArgTy->isAggregateType()) { in runOnFunction()
[all …]
DAMDGPURewriteOutArguments.cpp191 PointerType *ArgTy = dyn_cast<PointerType>(Arg.getType()); in isOutArgumentCandidate() local
194 if (!ArgTy || (ArgTy->getAddressSpace() != DL->getAllocaAddrSpace() && in isOutArgumentCandidate()
197 DL->getTypeStoreSize(ArgTy->getPointerElementType()) > MaxOutArgSizeBytes) { in isOutArgumentCandidate()
290 Type *ArgTy = OutArg->getType()->getPointerElementType(); in runOnFunction() local
297 unsigned ArgNumRegs = DL->getTypeStoreSize(ArgTy) / 4; in runOnFunction()
344 ReturnTypes.push_back(ArgTy); in runOnFunction()
DAMDGPUCallLowering.cpp159 Type *ArgTy = Arg.getType(); in lowerFormalArguments() local
160 unsigned AllocSize = DL.getTypeAllocSize(ArgTy); in lowerFormalArguments()
164 unsigned ABIAlign = DL.getABITypeAlignment(ArgTy); in lowerFormalArguments()
170 ArgOffset = alignTo(ArgOffset, DL.getABITypeAlignment(ArgTy)); in lowerFormalArguments()
171 lowerParameter(MIRBuilder, ArgTy, ArgOffset, Align, VRegs[i]); in lowerFormalArguments()
DAMDGPUSubtarget.cpp419 Type *ArgTy = Arg.getType(); in getExplicitKernArgSize() local
421 unsigned Align = DL.getABITypeAlignment(ArgTy); in getExplicitKernArgSize()
422 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in getExplicitKernArgSize()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DMemoryBuiltinsTest.cpp27 IntegerType *ArgTy = Type::getInt32Ty(Context); in TEST() local
30 FunctionType::get(Type::getInt8PtrTy(Context), {ArgTy}, false), in TEST()
37 CallInst::Create(AllocSizeFn, {ConstantInt::get(ArgTy, 100)})); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMLegalizerInfo.cpp326 Type *ArgTy = Type::getInt32Ty(Ctx); in legalizeCustom() local
327 StructType *RetTy = StructType::get(Ctx, {ArgTy, ArgTy}, /* Packed */ true); in legalizeCustom()
332 {{MI.getOperand(1).getReg(), ArgTy}, in legalizeCustom()
333 {MI.getOperand(2).getReg(), ArgTy}}); in legalizeCustom()
367 auto *ArgTy = OpSize == 32 ? Type::getFloatTy(Ctx) : Type::getDoubleTy(Ctx); in legalizeCustom() local
375 {{MI.getOperand(2).getReg(), ArgTy}, in legalizeCustom()
376 {MI.getOperand(3).getReg(), ArgTy}}); in legalizeCustom()
DARMFastISel.cpp2246 Type *ArgTy = Op->getType(); in ARMEmitLibcall() local
2248 if (!isTypeLegal(ArgTy, ArgVT)) return false; in ARMEmitLibcall()
2251 unsigned OriginalAlignment = DL.getABITypeAlignment(ArgTy); in ARMEmitLibcall()
2375 Type *ArgTy = (*i)->getType(); in SelectCall() local
2377 if (!isTypeLegal(ArgTy, ArgVT) && ArgVT != MVT::i16 && ArgVT != MVT::i8 && in SelectCall()
2385 unsigned OriginalAlignment = DL.getABITypeAlignment(ArgTy); in SelectCall()
3040 Type *ArgTy = Arg.getType(); in fastLowerArguments() local
3041 if (ArgTy->isStructTy() || ArgTy->isArrayTy() || ArgTy->isVectorTy()) in fastLowerArguments()
3044 EVT ArgVT = TLI.getValueType(DL, ArgTy); in fastLowerArguments()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp200 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() local
201 args[ArgNo] = ffiTypeFor(ArgTy); in ffiInvoke()
202 ArgBytes += TD->getTypeStoreSize(ArgTy); in ffiInvoke()
212 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() local
213 values[ArgNo] = ffiValueFor(ArgTy, ArgVals[ArgNo], ArgDataPtr); in ffiInvoke()
214 ArgDataPtr += TD->getTypeStoreSize(ArgTy); in ffiInvoke()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp210 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() local
211 args[ArgNo] = ffiTypeFor(ArgTy); in ffiInvoke()
212 ArgBytes += TD.getTypeStoreSize(ArgTy); in ffiInvoke()
222 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() local
223 values[ArgNo] = ffiValueFor(ArgTy, ArgVals[ArgNo], ArgDataPtr); in ffiInvoke()
224 ArgDataPtr += TD.getTypeStoreSize(ArgTy); in ffiInvoke()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp199 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() local
200 args[ArgNo] = ffiTypeFor(ArgTy); in ffiInvoke()
201 ArgBytes += TD.getTypeStoreSize(ArgTy); in ffiInvoke()
211 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() local
212 values[ArgNo] = ffiValueFor(ArgTy, ArgVals[ArgNo], ArgDataPtr); in ffiInvoke()
213 ArgDataPtr += TD.getTypeStoreSize(ArgTy); in ffiInvoke()
/external/clang/lib/StaticAnalyzer/Checkers/
DGenericTaintChecker.cpp437 const PointerType *ArgTy = in getPointedToSymbol() local
440 ArgTy ? ArgTy->getPointeeType(): QualType()); in getPointedToSymbol()
489 const Type *ArgTy = Arg->getType().getTypePtr(); in process() local
490 QualType PType = ArgTy->getPointeeType(); in process()
492 || (ArgTy->isReferenceType() && !Arg->getType().isConstQualified())) in process()
DBasicObjCFoundationChecks.cpp779 QualType ArgTy = msg.getArgExpr(I)->getType(); in checkPreObjCMessage() local
780 if (ArgTy->isObjCObjectPointerType()) in checkPreObjCMessage()
784 if (ArgTy->isBlockPointerType()) in checkPreObjCMessage()
792 if (C.getASTContext().isObjCNSObjectType(ArgTy)) in checkPreObjCMessage()
796 if (coreFoundation::isCFObjectRef(ArgTy)) in checkPreObjCMessage()
817 ArgTy.print(os, C.getLangOpts()); in checkPreObjCMessage()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DModule.cpp208 while (Type *ArgTy = va_arg(Args, Type*)) in getOrInsertFunction() local
209 ArgTys.push_back(ArgTy); in getOrInsertFunction()
226 while (Type *ArgTy = va_arg(Args, Type*)) in getOrInsertFunction() local
227 ArgTys.push_back(ArgTy); in getOrInsertFunction()
/external/llvm/lib/IR/
DModule.cpp162 while (Type *ArgTy = va_arg(Args, Type*)) in getOrInsertFunction() local
163 ArgTys.push_back(ArgTy); in getOrInsertFunction()
180 while (Type *ArgTy = va_arg(Args, Type*)) in getOrInsertFunction() local
181 ArgTys.push_back(ArgTy); in getOrInsertFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFastISel.cpp642 Type *ArgTy = Arg.getType(); in fastLowerArguments() local
643 if (ArgTy->isStructTy() || ArgTy->isArrayTy()) in fastLowerArguments()
645 if (!Subtarget->hasSIMD128() && ArgTy->isVectorTy()) in fastLowerArguments()
650 switch (getSimpleType(ArgTy)) { in fastLowerArguments()
705 MVT::SimpleValueType ArgTy = getLegalType(getSimpleType(Arg.getType())); in fastLowerArguments() local
706 if (ArgTy == MVT::INVALID_SIMPLE_VALUE_TYPE) { in fastLowerArguments()
710 MFI->addParam(ArgTy); in fastLowerArguments()
804 MVT::SimpleValueType ArgTy = getSimpleType(V->getType()); in selectCall() local
805 if (ArgTy == MVT::INVALID_SIMPLE_VALUE_TYPE) in selectCall()
/external/spirv-llvm/lib/SPIRV/
DSPIRVReader.cpp579 std::vector<Type*> ArgTy; in transOCLBuiltinFromVariable() local
581 ArgTy.push_back(Type::getInt32Ty(*Context)); in transOCLBuiltinFromVariable()
582 MangleOpenCLBuiltin(FuncName, ArgTy, MangledName); in transOCLBuiltinFromVariable()
585 FunctionType *FT = FunctionType::get(ReturnTy, ArgTy, false); in transOCLBuiltinFromVariable()
1580 Type* ArgTy[] = { TrgTy, SrcTy, SizeTy, Int32Ty, Int1Ty }; in transValueWithoutDecoration() local
1591 FunctionType *FT = FunctionType::get(VoidTy, ArgTy, false); in transValueWithoutDecoration()
2184 SPIRVType *ArgTy = Arg->getType(); in transKernelMetadata() local
2186 if (ArgTy->isTypePointer()) in transKernelMetadata()
2187 AS = SPIRSPIRVAddrSpaceMap::rmap(ArgTy->getPointerStorageClass()); in transKernelMetadata()
2188 else if (ArgTy->isTypeOCLImage() || ArgTy->isTypePipe()) in transKernelMetadata()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/CBackend/
DCBackend.cpp391 Type *ArgTy = *I; in printStructReturnPointerFunctionType() local
393 assert(ArgTy->isPointerTy()); in printStructReturnPointerFunctionType()
394 ArgTy = cast<PointerType>(ArgTy)->getElementType(); in printStructReturnPointerFunctionType()
396 printType(FunctionInnards, ArgTy, in printStructReturnPointerFunctionType()
483 Type *ArgTy = *I; in printType() local
485 assert(ArgTy->isPointerTy()); in printType()
486 ArgTy = cast<PointerType>(ArgTy)->getElementType(); in printType()
490 printType(FunctionInnards, ArgTy, in printType()
2156 Type *ArgTy = I->getType(); in printFunctionSignature() local
2158 ArgTy = cast<PointerType>(ArgTy)->getElementType(); in printFunctionSignature()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceGlobalInits.cpp129 for (Type ArgTy : Signature.getArgList()) { in dump() local
134 Stream << ArgTy; in dump()
DIceTypes.cpp294 for (const Type ArgTy : ArgList) { in dump() local
300 Stream << ArgTy; in dump()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyFastISel.cpp577 Type *ArgTy = Arg.getType(); in fastLowerArguments() local
578 if (ArgTy->isStructTy() || ArgTy->isArrayTy() || ArgTy->isVectorTy()) in fastLowerArguments()
583 switch (getSimpleType(ArgTy)) { in fastLowerArguments()
671 MVT::SimpleValueType ArgTy = getSimpleType(V->getType()); in selectCall() local
672 if (ArgTy == MVT::INVALID_SIMPLE_VALUE_TYPE) in selectCall()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsISelLowering.h306 unsigned getABIAlignmentForCallingConv(Type *ArgTy, in getABIAlignmentForCallingConv() argument
308 if (ArgTy->isVectorTy()) in getABIAlignmentForCallingConv()
309 return std::min(DL.getABITypeAlignment(ArgTy), 8U); in getABIAlignmentForCallingConv()
310 return DL.getABITypeAlignment(ArgTy); in getABIAlignmentForCallingConv()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/
DJIT.cpp503 Type *ArgTy = FTy->getParamType(i); in runFunction() local
505 switch (ArgTy->getTypeID()) { in runFunction()
530 C = ConstantExpr::getIntToPtr(C, ArgTy); in runFunction()
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp2221 Type *ArgTy = Op->getType(); in ARMEmitLibcall() local
2223 if (!isTypeLegal(ArgTy, ArgVT)) return false; in ARMEmitLibcall()
2226 unsigned OriginalAlignment = DL.getABITypeAlignment(ArgTy); in ARMEmitLibcall()
2350 Type *ArgTy = (*i)->getType(); in SelectCall() local
2352 if (!isTypeLegal(ArgTy, ArgVT) && ArgVT != MVT::i16 && ArgVT != MVT::i8 && in SelectCall()
2360 unsigned OriginalAlignment = DL.getABITypeAlignment(ArgTy); in SelectCall()
3018 Type *ArgTy = I->getType(); in fastLowerArguments() local
3019 if (ArgTy->isStructTy() || ArgTy->isArrayTy() || ArgTy->isVectorTy()) in fastLowerArguments()
3022 EVT ArgVT = TLI.getValueType(DL, ArgTy); in fastLowerArguments()
/external/clang/lib/Sema/
DSemaExprCXX.cpp3771 QualType ArgTy) { in CheckUnaryTypeTraitTypeCompleteness() argument
3832 if (const auto *RD = ArgTy->getAsCXXRecordDecl()) in CheckUnaryTypeTraitTypeCompleteness()
3835 Loc, ArgTy, diag::err_incomplete_type_used_in_type_trait_expr); in CheckUnaryTypeTraitTypeCompleteness()
3842 if (ArgTy->getAsCXXRecordDecl()) in CheckUnaryTypeTraitTypeCompleteness()
3844 Loc, ArgTy, diag::err_incomplete_type_used_in_type_trait_expr); in CheckUnaryTypeTraitTypeCompleteness()
3876 QualType ElTy = ArgTy; in CheckUnaryTypeTraitTypeCompleteness()
3877 if (ArgTy->isIncompleteArrayType()) in CheckUnaryTypeTraitTypeCompleteness()
3878 ElTy = S.Context.getAsArrayType(ArgTy)->getElementType(); in CheckUnaryTypeTraitTypeCompleteness()
4360 QualType ArgTy = TSI->getType(); in evaluateTypeTrait() local
4361 if (ArgTy->isVoidType() || ArgTy->isIncompleteArrayType()) in evaluateTypeTrait()
[all …]
/external/llvm/lib/AsmParser/
DLLParser.cpp2104 Type *ArgTy = nullptr; in ParseParameterList() local
2107 if (ParseType(ArgTy, ArgLoc)) in ParseParameterList()
2110 if (ArgTy->isMetadataTy()) { in ParseParameterList()
2115 if (ParseOptionalParamAttrs(ArgAttrs) || ParseValue(ArgTy, V, PFS)) in ParseParameterList()
2207 Type *ArgTy = nullptr; in ParseArgumentList() local
2211 if (ParseType(ArgTy) || in ParseArgumentList()
2214 if (ArgTy->isVoidTy()) in ParseArgumentList()
2222 if (!FunctionType::isValidArgumentType(ArgTy)) in ParseArgumentList()
2226 ArgList.emplace_back(TypeLoc, ArgTy, AttributeSet::get(ArgTy->getContext(), in ParseArgumentList()
2239 if (ParseType(ArgTy) || ParseOptionalParamAttrs(Attrs)) return true; in ParseArgumentList()
[all …]

1234