Home
last modified time | relevance | path

Searched refs:ResType (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp104 bool spvSelect(Register ResVReg, const SPIRVType *ResType,
107 bool selectFirstBitHigh(Register ResVReg, const SPIRVType *ResType,
110 bool selectFirstBitLow(Register ResVReg, const SPIRVType *ResType,
113 bool selectFirstBitSet16(Register ResVReg, const SPIRVType *ResType,
117 bool selectFirstBitSet32(Register ResVReg, const SPIRVType *ResType,
121 bool selectFirstBitSet64(Register ResVReg, const SPIRVType *ResType,
125 bool selectFirstBitSet64Overflow(Register ResVReg, const SPIRVType *ResType,
133 bool selectOpWithSrcs(Register ResVReg, const SPIRVType *ResType,
137 bool selectUnOp(Register ResVReg, const SPIRVType *ResType, MachineInstr &I,
140 bool selectBitcast(Register ResVReg, const SPIRVType *ResType,
[all …]
H A DSPIRVPostLegalizer.cpp83 SPIRVType *ResType = GR->getSPIRVTypeForVReg(ResVReg); in processNewInstrs() local
84 if (!ResType) { in processNewInstrs()
86 ResType = ScalarType; in processNewInstrs()
87 setRegClassType(ResVReg, ResType, GR, &MRI, *GR->CurMF, true); in processNewInstrs()
H A DSPIRVISelLowering.cpp164 SPIRVType *ResType, const Type *ResTy) { in createNewPtrType() argument
170 ReuseType ? ResType in createNewPtrType()
181 SPIRVType *ResType, const Type *ResTy = nullptr) { in validatePtrTypes() argument
187 if (!ResType || !OpType || OpType->getOpcode() != SPIRV::OpTypePointer) in validatePtrTypes()
195 bool IsSameMF = MF == ResType->getParent()->getParent(); in validatePtrTypes()
196 bool IsEqualTypes = IsSameMF ? ElemType == ResType in validatePtrTypes()
203 createNewPtrType(GR, I, OpType, IsSameMF, ResType, ResTy); in validatePtrTypes()
H A DSPIRVPreLegalizer.cpp177 SPIRVType *ResType = GR->getSPIRVTypeForVReg(ResVReg); in buildOpBitcast() local
179 assert(ResType && OpType && "Operand types are expected"); in buildOpBitcast()
180 if (!GR->isBitcastCompatible(ResType, OpType)) in buildOpBitcast()
184 MRI->setRegClass(ResVReg, GR->getRegClass(ResType)); in buildOpBitcast()
185 if (ResType == OpType) in buildOpBitcast()
190 .addUse(GR->getSPIRVTypeID(ResType)) in buildOpBitcast()
H A DSPIRVUtils.cpp994 const MachineInstr *ResType) { in getArrayComponentCount() argument
995 return foldImm(ResType->getOperand(2), MRI); in getArrayComponentCount()
H A DSPIRVUtils.h508 const MachineInstr *ResType);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DDirectX.cpp40 auto *ResType = dyn_cast<HLSLAttributedResourceType>(Ty); in getHLSLType() local
41 if (!ResType) in getHLSLType()
45 const HLSLAttributedResourceType::Attributes &ResAttrs = ResType->getAttrs(); in getHLSLType()
50 QualType ContainedTy = ResType->getContainedType(); in getHLSLType()
74 QualType ContainedTy = ResType->getContainedType(); in getHLSLType()
H A DSPIR.cpp472 auto *ResType = dyn_cast<HLSLAttributedResourceType>(Ty); in getHLSLType() local
473 if (!ResType) in getHLSLType()
476 const HLSLAttributedResourceType::Attributes &ResAttrs = ResType->getAttrs(); in getHLSLType()
481 QualType ContainedTy = ResType->getContainedType(); in getHLSLType()
502 QualType ContainedTy = ResType->getContainedType(); in getHLSLType()
H A DRISCV.cpp546 llvm::ScalableVectorType *ResType; in coerceVLSVector() local
553 ResType = llvm::ScalableVectorType::get(EltType, NumElts / VScale->first); in coerceVLSVector()
563 ResType = llvm::ScalableVectorType::get( in coerceVLSVector()
577 ResType = llvm::ScalableVectorType::get( in coerceVLSVector()
585 return ABIArgInfo::getDirect(ResType); in coerceVLSVector()
H A DX86.cpp2606 llvm::Type *ResType = nullptr; in classifyReturnType() local
2629 ResType = GetINTEGERTypeAtOffset(CGT.ConvertType(RetTy), 0, RetTy, 0); in classifyReturnType()
2633 if (Hi == NoClass && isa<llvm::IntegerType>(ResType)) { in classifyReturnType()
2647 ResType = GetSSETypeAtOffset(CGT.ConvertType(RetTy), 0, RetTy, 0); in classifyReturnType()
2653 ResType = llvm::Type::getX86_FP80Ty(getVMContext()); in classifyReturnType()
2661 ResType = llvm::StructType::get(llvm::Type::getX86_FP80Ty(getVMContext()), in classifyReturnType()
2696 ResType = GetByteVectorType(RetTy); in classifyReturnType()
2718 ResType = GetX86_64ByValArgumentPair(ResType, HighPart, getDataLayout()); in classifyReturnType()
2720 return ABIArgInfo::getDirect(ResType); in classifyReturnType()
2739 llvm::Type *ResType = nullptr; in classifyArgumentType() local
[all …]
H A DAArch64.cpp312 llvm::Type *ResType = llvm::Type::getInt16Ty(getVMContext()); in coerceIllegalVector() local
313 return ABIArgInfo::getDirect(ResType); in coerceIllegalVector()
316 llvm::Type *ResType = llvm::Type::getInt32Ty(getVMContext()); in coerceIllegalVector() local
317 return ABIArgInfo::getDirect(ResType); in coerceIllegalVector()
321 auto *ResType = in coerceIllegalVector() local
323 return ABIArgInfo::getDirect(ResType); in coerceIllegalVector()
327 auto *ResType = in coerceIllegalVector() local
329 return ABIArgInfo::getDirect(ResType); in coerceIllegalVector()
H A DARM.cpp298 llvm::Type *ResType = in coerceIllegalVector() local
300 return ABIArgInfo::getDirect(ResType); in coerceIllegalVector()
303 auto *ResType = llvm::FixedVectorType::get( in coerceIllegalVector() local
305 return ABIArgInfo::getDirect(ResType); in coerceIllegalVector()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXContainerGlobals.cpp216 dxbc::PSV::ResourceType ResType; in addResourcesForPSV() local
218 ResType = dxbc::PSV::ResourceType::SRVStructured; in addResourcesForPSV()
220 ResType = dxbc::PSV::ResourceType::SRVTyped; in addResourcesForPSV()
222 ResType = dxbc::PSV::ResourceType::SRVRaw; in addResourcesForPSV()
225 MakeBinding(Binding, ResType, TypeInfo.getResourceKind())); in addResourcesForPSV()
231 dxbc::PSV::ResourceType ResType; in addResourcesForPSV() local
233 ResType = dxbc::PSV::ResourceType::UAVStructuredWithCounter; in addResourcesForPSV()
235 ResType = dxbc::PSV::ResourceType::UAVStructured; in addResourcesForPSV()
237 ResType = dxbc::PSV::ResourceType::UAVTyped; in addResourcesForPSV()
239 ResType = dxbc::PSV::ResourceType::UAVRaw; in addResourcesForPSV()
[all …]
/freebsd/sys/contrib/edk2/Include/IndustryStandard/
H A DAcpi10.h119 UINT8 ResType;
235 UINT8 ResType;
250 UINT8 ResType;
265 UINT8 ResType;
H A DAcpi30.h44 UINT8 ResType;
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPrintfRuntimeBinding.cpp185 Type *ResType = Type::getInt32Ty(Ctx); in lowerPrintfForGpu() local
187 ResType = VectorType::get(ResType, VecType->getElementCount()); in lowerPrintfForGpu()
201 Arg = Builder.CreateZExt(Arg, ResType); in lowerPrintfForGpu()
203 Arg = Builder.CreateSExt(Arg, ResType); in lowerPrintfForGpu()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonPatternsHVX.td124 multiclass HvxLdfi_pat<InstHexagon MI, PatFrag Load, ValueType ResType,
126 def: Pat<(ResType (Load (add (i32 AddrFI:$fi), ImmPred:$Off))),
128 def: Pat<(ResType (Load (IsOrAdd (i32 AddrFI:$fi), ImmPred:$Off))),
130 def: Pat<(ResType (Load AddrFI:$fi)), (ResType (MI AddrFI:$fi, 0))>;
133 multiclass HvxLdgi_pat<InstHexagon MI, PatFrag Load, ValueType ResType,
135 def: Pat<(ResType (Load (add I32:$Rt, ImmPred:$Off))),
137 def: Pat<(ResType (Load I32:$Rt)),
141 multiclass HvxLdc_pat<InstHexagon MI, PatFrag Load, ValueType ResType> {
145 def: Pat<(ResType (Load (HexagonCP tconstpool:$Addr))),
147 def: Pat<(ResType (Load (HexagonAtPcrel tconstpool:$Addr))),
[all …]
H A DHexagonPatterns.td333 class OpR_RI_pat<InstHexagon MI, PatFrag Op, ValueType ResType,
335 : Pat<(ResType (Op RegPred:$Rs, ImmPred:$I)),
338 class OpR_RR_pat<InstHexagon MI, PatFrag Op, ValueType ResType,
340 : Pat<(ResType (Op RsPred:$Rs, RtPred:$Rt)),
756 class OpmR_RR_pat<PatFrag Output, PatFrag Op, ValueType ResType,
758 : Pat<(ResType (Op RsPred:$Rs, RtPred:$Rt)),
1527 class OpR_RR_pat_sat<InstHexagon MI, SDNode Op, ValueType ResType,
1529 : Pat<(ResType (Op RxPred:$Rs, RxPred:$Rt)),
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp429 Type *ResType = Builder.getInt32Ty(); in createMaskedFindMismatch() local
522 Value *Ctz = Builder.CreateCountTrailingZeroElems(ResType, PredMatchCmp); in createMaskedFindMismatch()
526 return Builder.CreateTrunc(VectorLoopRes64, ResType); in createMaskedFindMismatch()
534 Type *ResType = I32Type; in createPredicatedFindMismatch() local
585 Intrinsic::vp_cttz_elts, {ResType, VectorMatchCmp->getType()}, in createPredicatedFindMismatch()
629 return Builder.CreateTrunc(VectorLoopRes64, ResType); in createPredicatedFindMismatch()
643 Type *ResType = Builder.getInt32Ty(); in expandFindMismatch() local
821 PHINode *IndexPhi = Builder.CreatePHI(ResType, 2, "mismatch_index"); in expandFindMismatch()
846 Value *PhiInc = Builder.CreateAdd(IndexPhi, ConstantInt::get(ResType, 1), "", in expandFindMismatch()
865 PHINode *ResPhi = Builder.CreatePHI(ResType, 4, "mismatch_result"); in expandFindMismatch()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp916 getDefaultBuiltinObjectSizeResult(unsigned Type, llvm::IntegerType *ResType) { in getDefaultBuiltinObjectSizeResult() argument
917 return ConstantInt::get(ResType, (Type & 2) ? 0 : -1, /*isSigned=*/true); in getDefaultBuiltinObjectSizeResult()
922 llvm::IntegerType *ResType, in evaluateOrEmitBuiltinObjectSize() argument
927 return emitBuiltinObjectSize(E, Type, ResType, EmittedE, IsDynamic); in evaluateOrEmitBuiltinObjectSize()
928 return ConstantInt::get(ResType, ObjectSize, /*isSigned=*/true); in evaluateOrEmitBuiltinObjectSize()
1052 llvm::IntegerType *ResType) { in emitCountedBySize() argument
1079 return getDefaultBuiltinObjectSizeResult(Type, ResType); in emitCountedBySize()
1084 return getDefaultBuiltinObjectSizeResult(Type, ResType); in emitCountedBySize()
1096 Type, ResType); in emitCountedBySize()
1102 Type, ResType); in emitCountedBySize()
[all …]
H A DCodeGenFunction.h5408 llvm::IntegerType *ResType,
5416 llvm::IntegerType *ResType,
5420 unsigned Type, llvm::IntegerType *ResType);
5426 llvm::IntegerType *ResType);
5432 llvm::IntegerType *ResType);
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaHLSL.h60 QualType &ResType, HLSLAttributedResourceLocInfo *LocInfo = nullptr);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp10928 QualType ResType = Operand->getType(); in checkArithmeticIncompletePointerType() local
10929 if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>()) in checkArithmeticIncompletePointerType()
10930 ResType = ResAtomicType->getValueType(); in checkArithmeticIncompletePointerType()
10932 assert(ResType->isAnyPointerType()); in checkArithmeticIncompletePointerType()
10933 QualType PointeeTy = ResType->getPointeeType(); in checkArithmeticIncompletePointerType()
10950 QualType ResType = Operand->getType(); in checkArithmeticOpPointerOperand() local
10951 if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>()) in checkArithmeticOpPointerOperand()
10952 ResType = ResAtomicType->getValueType(); in checkArithmeticOpPointerOperand()
10954 if (!ResType->isAnyPointerType()) return true; in checkArithmeticOpPointerOperand()
10956 QualType PointeeTy = ResType->getPointeeType(); in checkArithmeticOpPointerOperand()
[all …]
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h2258 template <typename ArgType, typename ResType>
2259 struct CallableTraits<ResType (*)(ArgType)> {
2260 typedef ResType ResultType;
2261 typedef ResType (*StorageType)(ArgType);
2263 static void CheckIsValid(ResType (*f)(ArgType)) {
2268 static ResType Invoke(ResType (*f)(ArgType), T arg) {
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DX86.cpp2941 llvm::Type *ResType = ConvertType(E->getType()); in EmitX86BuiltinExpr() local
2956 HigherBits = Builder.CreateIntCast(HigherBits, ResType, IsSigned); in EmitX86BuiltinExpr()
2963 return Builder.CreateIntCast(MulResult, ResType, IsSigned); in EmitX86BuiltinExpr()

12