/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsCCState.cpp | 133 void MipsCCState::PreAnalyzeCallOperand(const Type *ArgTy, bool IsFixed, in PreAnalyzeCallOperand() argument 135 OriginalArgWasF128.push_back(originalTypeIsF128(ArgTy, Func)); in PreAnalyzeCallOperand() 136 OriginalArgWasFloat.push_back(ArgTy->isFloatingPointTy()); in PreAnalyzeCallOperand() 137 OriginalArgWasFloatVector.push_back(ArgTy->isVectorTy()); in PreAnalyzeCallOperand() 157 void MipsCCState::PreAnalyzeFormalArgument(const Type *ArgTy, in PreAnalyzeFormalArgument() argument 169 OriginalArgWasF128.push_back(originalTypeIsF128(ArgTy, nullptr)); in PreAnalyzeFormalArgument() 170 OriginalArgWasFloat.push_back(ArgTy->isFloatingPointTy()); in PreAnalyzeFormalArgument() 175 OriginalArgWasFloatVector.push_back(ArgTy->isVectorTy()); in PreAnalyzeFormalArgument()
|
H A D | MipsCCState.h | 39 void PreAnalyzeCallOperand(const Type *ArgTy, bool IsFixed, const char *Func); 41 void PreAnalyzeFormalArgument(const Type *ArgTy, ISD::ArgFlagsTy Flags);
|
H A D | MipsISelLowering.h | 311 Align getABIAlignmentForCallingConv(Type *ArgTy, in getABIAlignmentForCallingConv() argument 313 const Align ABIAlign = DL.getABITypeAlign(ArgTy); in getABIAlignmentForCallingConv() 314 if (ArgTy->isVectorTy()) in getABIAlignmentForCallingConv()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerKernelArguments.cpp | 134 Type *ArgTy = IsByRef ? Arg.getParamByRefType() : Arg.getType(); in lowerKernelArguments() local 136 Align ABITypeAlign = DL.getValueOrABITypeAlignment(ParamAlign, ArgTy); in lowerKernelArguments() 138 uint64_t Size = DL.getTypeSizeInBits(ArgTy); in lowerKernelArguments() 139 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in lowerKernelArguments() 170 if (PointerType *PT = dyn_cast<PointerType>(ArgTy)) { in lowerKernelArguments() 186 auto *VT = dyn_cast<FixedVectorType>(ArgTy); in lowerKernelArguments() 188 bool DoShiftOpt = Size < 32 && !ArgTy->isAggregateType(); in lowerKernelArguments() 215 AdjustedArgTy = ArgTy; in lowerKernelArguments() 230 if (isa<PointerType>(ArgTy)) { in lowerKernelArguments() 268 Value *NewVal = Builder.CreateBitCast(Trunc, ArgTy, in lowerKernelArguments()
|
H A D | AMDGPURewriteOutArguments.cpp | 154 PointerType *ArgTy = dyn_cast<PointerType>(Arg.getType()); in getOutArgumentType() 157 if (!ArgTy || (ArgTy->getAddressSpace() != DL->getAllocaAddrSpace() && in getOutArgumentType() 241 Type *ArgTy = Pair.second; in runOnFunction() 248 unsigned ArgNumRegs = DL->getTypeStoreSize(ArgTy) / 4; in runOnFunction() 296 ReturnTypes.push_back(ArgTy); in runOnFunction() 297 OutArgIndexes.insert({OutArg->getArgNo(), ArgTy}); in runOnFunction() 155 PointerType *ArgTy = dyn_cast<PointerType>(Arg.getType()); getOutArgumentType() local 242 Type *ArgTy = Pair.second; runOnFunction() local
|
H A D | AMDGPUCallLowering.cpp | 433 LLT ArgTy = getLLTForType(*SplitArg.Ty, DL); in lowerParameter() local 437 ArgTy.getScalarSizeInBits()); in lowerParameter() 438 ArgTy = ArgTy.isVector() ? LLT::vector(ArgTy.getElementCount(), PtrTy) in lowerParameter() 446 ArgTy, commonAlignment(Alignment, FieldOffsets[Idx])); in lowerParameter() 534 Type *ArgTy = IsByRef ? Arg.getParamByRefType() : Arg.getType(); in lowerFormalArgumentsKernel() local 535 unsigned AllocSize = DL.getTypeAllocSize(ArgTy); in lowerFormalArgumentsKernel() 540 Align ABIAlign = DL.getValueOrABITypeAlignment(ParamAlign, ArgTy); in lowerFormalArgumentsKernel() 803 LLT ArgTy; in passSpecialInputs() local 809 std::tie(OutgoingArg, ArgRC, ArgTy) = in passSpecialInputs() 816 std::tie(IncomingArg, IncomingArgRC, ArgTy) = in passSpecialInputs() [all …]
|
H A D | AMDGPUMachineFunction.cpp | 33 Type *ArgTy = Arg.getType(); in hasLDSKernelArgument() local 34 if (auto PtrTy = dyn_cast<PointerType>(ArgTy)) { in hasLDSKernelArgument()
|
H A D | AMDGPUHSAMetadataStreamer.cpp | 326 Type *ArgTy; in emitKernelArg() local 328 std::tie(ArgTy, ArgAlign) = getArgumentTypeAlign(Arg, DL); in emitKernelArg() 330 emitKernelArg(DL, ArgTy, ArgAlign, in emitKernelArg() 331 getValueKind(ArgTy, TypeQual, BaseTypeName), Offset, Args, in emitKernelArg()
|
H A D | VOP3PInstructions.td | 982 class VOP3PWMMA_Profile<list<ValueType> ArgTy, bit _IsSWMMAC, int _IndexType, 984 : VOP3P_Profile<VOPProfile<ArgTy>> { 995 bit IsAB_F16 = !and(IsF16BF16, ArgTy[1].isFP); 996 bit IsAB_BF16 = !and(IsF16BF16, isIntType<ArgTy[1]>.ret); 997 bit IsC_F32 = !or(!eq(ArgTy[3], v8f32), !eq(ArgTy[3], v4f32)); 998 bit IsC_BF16 = !or(!eq(ArgTy[3], v8i16), !eq(ArgTy[3], v4i16)); 999 bit IsC_F16 = !or(!eq(ArgTy[3], v8f16), !eq(ArgTy[3], v4f16)); 1008 let DstRC = !cast<RegisterOperand>("VDst_"#ArgTy[0].Size); 1009 let Src0RC64 = !cast<RegisterOperand>("VRegSrc_"#ArgTy[1].Size); 1010 let Src1RC64 = !cast<RegisterOperand>("VRegSrc_"#ArgTy[2].Size); [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | SystemZ.cpp | 38 ABIArgInfo classifyArgumentType(QualType ArgTy) const; 264 llvm::Type *ArgTy = CGF.ConvertTypeForMem(Ty); in EmitVAArg() local 265 llvm::Type *DirectTy = ArgTy; in EmitVAArg() 279 ArgTy = AI.getCoerceToType(); in EmitVAArg() 280 InFPRs = (!IsSoftFloatABI && (ArgTy->isFloatTy() || ArgTy->isDoubleTy())); in EmitVAArg() 281 IsVector = ArgTy->isVectorTy(); in EmitVAArg() 397 ResAddr = Address(CGF.Builder.CreateLoad(ResAddr, "indirect_arg"), ArgTy, in EmitVAArg()
|
H A D | XCore.cpp | 149 llvm::Type *ArgTy = CGT.ConvertType(Ty); in EmitVAArg() local 151 AI.setCoerceToType(ArgTy); in EmitVAArg() 152 llvm::Type *ArgPtrTy = llvm::PointerType::getUnqual(ArgTy); in EmitVAArg() 162 Val = Address(llvm::UndefValue::get(ArgPtrTy), ArgTy, TypeAlign); in EmitVAArg() 167 Val = AP.withElementType(ArgTy); in EmitVAArg() 175 Val = Address(Builder.CreateLoad(Val), ArgTy, TypeAlign); in EmitVAArg()
|
H A D | Sparc.cpp | 284 llvm::Type *ArgTy = CGT.ConvertType(Ty); in EmitVAArg() local 286 AI.setCoerceToType(ArgTy); in EmitVAArg() 323 ArgAddr = Address(Builder.CreateLoad(ArgAddr, "indirect.arg"), ArgTy, in EmitVAArg() 336 CGF.MakeAddrLValue(ArgAddr.withElementType(ArgTy), Ty), Slot); in EmitVAArg()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/ |
H A D | PointerTypeAnalysis.cpp | 110 Type *ArgTy = A.getType(); in classifyFunctionType() local 111 if (ArgTy->isPointerTy()) in classifyFunctionType() 112 ArgTy = classifyPointerType(&A, Map); in classifyFunctionType() 113 NewArgs.push_back(ArgTy); in classifyFunctionType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMLegalizerInfo.cpp | 361 Type *ArgTy = Type::getInt32Ty(Ctx); in legalizeCustom() local 362 StructType *RetTy = StructType::get(Ctx, {ArgTy, ArgTy}, /* Packed */ true); in legalizeCustom() 366 {{MI.getOperand(1).getReg(), ArgTy, 0}, in legalizeCustom() 367 {MI.getOperand(2).getReg(), ArgTy, 0}}, in legalizeCustom() 395 auto *ArgTy = OpSize == 32 ? Type::getFloatTy(Ctx) : Type::getDoubleTy(Ctx); in legalizeCustom() local 403 {{MI.getOperand(2).getReg(), ArgTy, 0}, in legalizeCustom() 404 {MI.getOperand(3).getReg(), ArgTy, 0}}, in legalizeCustom()
|
H A D | ARMFastISel.cpp | 2235 Type *ArgTy = Op->getType(); in ARMEmitLibcall() local 2237 if (!isTypeLegal(ArgTy, ArgVT)) return false; in ARMEmitLibcall() 2240 Flags.setOrigAlign(DL.getABITypeAlign(ArgTy)); in ARMEmitLibcall() 2363 Type *ArgTy = (*ArgI)->getType(); in SelectCall() local 2365 if (!isTypeLegal(ArgTy, ArgVT) && ArgVT != MVT::i16 && ArgVT != MVT::i8 && in SelectCall() 2373 Flags.setOrigAlign(DL.getABITypeAlign(ArgTy)); in SelectCall() 3041 Type *ArgTy = Arg.getType(); in fastLowerArguments() local 3042 if (ArgTy->isStructTy() || ArgTy->isArrayTy() || ArgTy->isVectorTy()) in fastLowerArguments() 3045 EVT ArgVT = TLI.getValueType(DL, ArgTy); in fastLowerArguments()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | ExternalFunctions.cpp | 222 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() local 223 args[ArgNo] = ffiTypeFor(ArgTy); in ffiInvoke() 224 ArgBytes += TD.getTypeStoreSize(ArgTy); in ffiInvoke() 234 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() local 235 values[ArgNo] = ffiValueFor(ArgTy, ArgVals[ArgNo], ArgDataPtr); in ffiInvoke() 236 ArgDataPtr += TD.getTypeStoreSize(ArgTy); in ffiInvoke()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ReplaceWithVeclib.cpp | 112 auto *ArgTy = Arg.value()->getType(); in replaceWithCallToVeclib() local 114 ScalarArgTypes.push_back(ArgTy); in replaceWithCallToVeclib() 115 } else if (auto *VectorArgTy = dyn_cast<VectorType>(ArgTy)) { in replaceWithCallToVeclib()
|
H A D | InterleavedLoadCombinePass.cpp | 789 FixedVectorType *ArgTy = in computeFromSVI() local 793 VectorInfo LHS(ArgTy); in computeFromSVI() 798 VectorInfo RHS(ArgTy); in computeFromSVI() 839 assert((i < 2 * (signed)ArgTy->getNumElements()) && in computeFromSVI() 844 else if (i < (signed)ArgTy->getNumElements()) { in computeFromSVI() 851 Result.EI[j] = RHS.EI[i - ArgTy->getNumElements()]; in computeFromSVI()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprAgg.cpp | 996 QualType ArgTy = E->getLHS()->getType(); in EmitCompare() local 997 if (const ComplexType *CT = ArgTy->getAs<ComplexType>()) in EmitCompare() 998 ArgTy = CT->getElementType(); in EmitCompare() 1000 if (const auto *MPT = ArgTy->getAs<MemberPointerType>()) { in EmitCompare() 1028 if (ArgTy->hasFloatingRepresentation()) in EmitCompare() 1031 if (ArgTy->isIntegralOrEnumerationType() || ArgTy->isPointerType()) { in EmitCompare() 1033 ArgTy->hasSignedIntegerRepresentation() ? InstInfo.SCmp : InstInfo.UCmp; in EmitCompare() 1053 QualType ArgTy = E->getLHS()->getType(); in VisitBinCmp() local 1055 if (!ArgTy->isIntegralOrEnumerationType() && !ArgTy->isRealFloatingType() && in VisitBinCmp() 1056 !ArgTy->isNullPtrType() && !ArgTy->isPointerType() && in VisitBinCmp() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyFastISel.cpp | 664 Type *ArgTy = Arg.getType(); in fastLowerArguments() local 665 if (ArgTy->isStructTy() || ArgTy->isArrayTy()) in fastLowerArguments() 667 if (!Subtarget->hasSIMD128() && ArgTy->isVectorTy()) in fastLowerArguments() 672 switch (getSimpleType(ArgTy)) { in fastLowerArguments() 743 MVT::SimpleValueType ArgTy = getLegalType(getSimpleType(Arg.getType())); in fastLowerArguments() local 744 if (ArgTy == MVT::INVALID_SIMPLE_VALUE_TYPE) { in fastLowerArguments() 748 MFI->addParam(ArgTy); in fastLowerArguments() 843 MVT::SimpleValueType ArgTy = getSimpleType(V->getType()); in selectCall() local 844 if (ArgTy == MVT::INVALID_SIMPLE_VALUE_TYPE) in selectCall()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | BasicObjCFoundationChecks.cpp | 755 QualType ArgTy = msg.getArgExpr(I)->getType(); in checkPreObjCMessage() local 756 if (ArgTy->isObjCObjectPointerType()) in checkPreObjCMessage() 760 if (ArgTy->isBlockPointerType()) in checkPreObjCMessage() 768 if (C.getASTContext().isObjCNSObjectType(ArgTy)) in checkPreObjCMessage() 772 if (coreFoundation::isCFObjectRef(ArgTy)) in checkPreObjCMessage() 793 ArgTy.print(os, C.getLangOpts()); in checkPreObjCMessage()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstCombineIntrinsic.cpp | 449 auto *ArgTy = cast<FixedVectorType>(Arg0->getType()); in simplifyX86pack() local 451 unsigned NumSrcElts = ArgTy->getNumElements(); in simplifyX86pack() 457 unsigned SrcScalarSizeInBits = ArgTy->getScalarSizeInBits(); in simplifyX86pack() 484 auto *MinC = Constant::getIntegerValue(ArgTy, MinValue); in simplifyX86pack() 485 auto *MaxC = Constant::getIntegerValue(ArgTy, MaxValue); in simplifyX86pack() 511 auto *ArgTy = cast<FixedVectorType>(Arg0->getType()); in simplifyX86pmulh() local 512 assert(ArgTy == ResTy && ResTy->getScalarSizeInBits() == 16 && in simplifyX86pmulh() 541 auto *ExtTy = FixedVectorType::getExtendedElementVectorType(ArgTy); in simplifyX86pmulh() 569 [[maybe_unused]] auto *ArgTy = cast<FixedVectorType>(Arg0->getType()); in simplifyX86pmadd() local 572 assert(ArgTy->getNumElements() == (2 * NumDstElts) && in simplifyX86pmadd() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaOpenCL.cpp | 419 const PointerType *ArgTy = ArgIdx->getType()->getAs<PointerType>(); in checkPipePacketType() local 422 if (!ArgTy || in checkPipePacketType() 424 EltTy, ArgTy->getPointeeType()->getCanonicalTypeInternal())) { in checkPipePacketType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64Arm64ECCallLowering.cpp | 541 Type *ArgTy = Arm64Ty->getParamType(i); in buildEntryThunk() local 546 Value *CastAlloca = IRB.CreateAlloca(ArgTy); in buildEntryThunk() 548 Arg = IRB.CreateLoad(ArgTy, CastAlloca); in buildEntryThunk() 551 Arg = IRB.CreateLoad(ArgTy, IRB.CreateBitCast(Arg, PtrTy)); in buildEntryThunk() 554 assert(Arg->getType() == ArgTy); in buildEntryThunk()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXISelLowering.h | 475 Align getFunctionParamOptimizedAlign(const Function *F, Type *ArgTy, 479 Align getFunctionByValParamAlign(const Function *F, Type *ArgTy,
|