Home
last modified time | relevance | path

Searched refs:OpTy (Results 1 – 25 of 63) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenOpenACCClause.cpp47 template <typename OpTy>
49 : public OpenACCClauseVisitor<OpenACCClauseCIREmitter<OpTy>> {
53 OpTy &operation;
144 typename = std::enable_if_t<isCombinedType<OpTy>, U>>
155 typename = std::enable_if_t<isCombinedType<OpTy>, U>>
159 OpenACCClauseCIREmitter<typename OpTy::ComputeOpTy> computeEmitter{ in applyToComputeOp()
268 if constexpr (isOneOfTypes<OpTy, mlir::acc::ParallelOp, mlir::acc::SerialOp, in getAsyncOnlyAttr()
272 } else if constexpr (isOneOfTypes<OpTy, mlir::acc::EnterDataOp, in getAsyncOnlyAttr()
281 } else if constexpr (isCombinedType<OpTy>) { in getAsyncOnlyAttr()
294 if constexpr (isOneOfTypes<OpTy, mlir::acc::ParallelOp, mlir::acc::SerialOp, in getAsyncOperandsDeviceTypeAttr()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h62 template <typename OpTy> bool match(OpTy *V) const { in match()
76 template <typename OpTy> bool match(OpTy *V) const { in match()
1077 template <typename OpTy> bool match(OpTy *V) const { in match()
1100 template <typename OpTy> bool match(OpTy *V) const { in match()
1125 template <typename OpTy> inline bool match(unsigned Opc, OpTy *V) const { in match()
1135 template <typename OpTy> bool match(OpTy *V) const { in match()
1168 template <typename OpTy> bool match(OpTy *V) const { in match()
1195 template <typename OpTy> inline FNeg_match<OpTy> m_FNeg(const OpTy &X) { in m_FNeg()
1196 return FNeg_match<OpTy>(X); in m_FNeg()
1299 template <typename OpTy> bool match(OpTy *V) const { in match()
[all …]
H A DFixedPointBuilder.h177 Type *OpTy = getAccommodatingFloatType(DstTy, SrcSema); in CreateFixedToFloating() local
180 Result = SrcSema.isSigned() ? B.CreateSIToFP(Src, OpTy) in CreateFixedToFloating()
181 : B.CreateUIToFP(Src, OpTy); in CreateFixedToFloating()
185 ConstantFP::get(OpTy, std::pow(2, -(int)SrcSema.getScale()))); in CreateFixedToFloating()
186 if (OpTy != DstTy) in CreateFixedToFloating()
194 Type *OpTy = getAccommodatingFloatType(Src->getType(), DstSema); in CreateFloatingToFixed() local
195 if (OpTy != Src->getType()) in CreateFloatingToFixed()
196 Result = B.CreateFPExt(Result, OpTy); in CreateFloatingToFixed()
200 ConstantFP::get(OpTy, std::pow(2, DstSema.getScale()))); in CreateFloatingToFixed()
206 Result = B.CreateIntrinsic(IID, {ResultTy, OpTy}, {Result}); in CreateFloatingToFixed()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp401 Type *OpTy = Op->getType(); in buildSpvPtrcast() local
402 SmallVector<Type *, 2> Types = {OpTy, OpTy}; in buildSpvPtrcast()
404 B.getInt32(getPointerAddressSpace(OpTy))}; in buildSpvPtrcast()
744 Type *OpTy = Op->getType(); in deduceNestedTypeHelper() local
745 Type *Ty = OpTy; in deduceNestedTypeHelper()
747 if (auto *PtrTy = dyn_cast<PointerType>(OpTy)) { in deduceNestedTypeHelper()
752 Ty = deduceNestedTypeHelper(dyn_cast<User>(Op), OpTy, Visited, in deduceNestedTypeHelper()
757 Change |= Ty != OpTy; in deduceNestedTypeHelper()
766 Type *OpTy = ArrTy->getElementType(); in deduceNestedTypeHelper() local
767 Type *Ty = OpTy; in deduceNestedTypeHelper()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp40 Constant *llvm::getPredForICmpCode(unsigned Code, bool Sign, Type *OpTy, in getPredForICmpCode() argument
45 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 0); in getPredForICmpCode()
53 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 1); in getPredForICmpCode()
64 Constant *llvm::getPredForFCmpCode(unsigned Code, Type *OpTy, in getPredForFCmpCode() argument
70 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 0); in getPredForFCmpCode()
72 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 1); in getPredForFCmpCode()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMIPatternMatch.h453 template <typename OpTy>
454 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) {
484 template <typename OpTy>
485 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) {
650 template <typename OpTy>
651 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) {
744 template <typename OpTy>
745 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) {
776 template <typename OpTy>
777 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) {
[all …]
H A DLegalizationArtifactCombiner.h517 LLT OpTy, LLT DestTy) { in canFoldMergeOpcode() argument
548 return !DestTy.isVector() && OpTy.isVector() && in canFoldMergeOpcode()
549 DestTy == OpTy.getElementType(); in canFoldMergeOpcode()
556 const unsigned OpEltSize = OpTy.getElementType().getSizeInBits(); in canFoldMergeOpcode()
1074 LLT OpTy = MRI.getType(SrcReg); in tryCombineUnmergeValues() local
1099 {TargetOpcode::G_UNMERGE_VALUES, {OpTy, SrcUnmergeSrcTy}}); in tryCombineUnmergeValues()
1102 if (!OpTy.isVector() || !LI.isLegal({TargetOpcode::G_UNMERGE_VALUES, in tryCombineUnmergeValues()
1144 ConvertOp, OpTy, DestTy)) { in tryCombineUnmergeValues()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCmpInstAnalysis.h55 Constant *getPredForICmpCode(unsigned Code, bool Sign, Type *OpTy,
92 Constant *getPredForFCmpCode(unsigned Code, Type *OpTy,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp121 for (auto *OpTy : RemainingOps) { in createMemCpyLoopKnownSize() local
125 unsigned OperandSize = DL.getTypeStoreSize(OpTy); in createMemCpyLoopKnownSize()
133 RBuilder.CreateAlignedLoad(OpTy, SrcGEP, PartSrcAlign, SrcIsVolatile); in createMemCpyLoopKnownSize()
708 auto GenerateResidualLdStPair = [&](Type *OpTy, IRBuilderBase &Builder, in createMemMoveLoopKnownSize()
713 unsigned OperandSize = DL.getTypeStoreSize(OpTy); in createMemMoveLoopKnownSize()
722 Builder.CreateAlignedLoad(OpTy, SrcGEP, ResSrcAlign, SrcIsVolatile); in createMemMoveLoopKnownSize()
745 for (auto *OpTy : RemainingOps) { in createMemMoveLoopKnownSize() local
749 GenerateResidualLdStPair(OpTy, BwdResBuilder, BytesCopied); in createMemMoveLoopKnownSize()
825 for (auto *OpTy : RemainingOps) in createMemMoveLoopKnownSize() local
826 GenerateResidualLdStPair(OpTy, FwdResBuilder, BytesCopied); in createMemMoveLoopKnownSize()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DInlineAsmLowering.cpp250 Type *OpTy = OpInfo.CallOperandVal->getType(); in lowerInlineAsm() local
255 OpTy = Call.getParamElementType(ArgNo); in lowerInlineAsm()
256 assert(OpTy && "Indirect operand must have elementtype attribute"); in lowerInlineAsm()
260 if (!OpTy->isSingleValueType()) { in lowerInlineAsm()
267 TLI->getAsmOperandValueType(DL, OpTy, true).getSimpleVT(); in lowerInlineAsm()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVRegisterBankInfo.cpp276 LLT OpTy = MRI.getType(MI.getOperand(Idx).getReg()); in getInstrMapping() local
277 assert(Ty.isVector() == OpTy.isVector() && in getInstrMapping()
280 if (OpTy.isVector() || isPreISelGenericFloatingPointOpcode(Opc)) in getInstrMapping()
281 assert(Size == OpTy.getSizeInBits() && "Operand has incompatible size"); in getInstrMapping()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMInstrNEON.td2523 string Dt, ValueType ResTy, ValueType OpTy, SDNode OpNode>
2526 [(set DPR:$Vd, (ResTy (OpNode (OpTy DPR:$Vm))))]>;
2529 string Dt, ValueType ResTy, ValueType OpTy, SDNode OpNode>
2532 [(set QPR:$Vd, (ResTy (OpNode (OpTy QPR:$Vm))))]>;
2538 ValueType ResTy, ValueType OpTy, SDPatternOperator IntOp>
2541 [(set DPR:$Vd, (ResTy (IntOp (OpTy DPR:$Vm))))]>;
2545 ValueType ResTy, ValueType OpTy, SDPatternOperator IntOp>
2548 [(set QPR:$Vd, (ResTy (IntOp (OpTy QPR:$Vm))))]>;
2553 ValueType ResTy, ValueType OpTy, SDPatternOperator IntOp>
2556 [(set DPR:$Vd, (ResTy (IntOp (OpTy DPR:$Vm))))]>;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp262 auto *OpTy = cast<FixedVectorType>(Op->getType()); in trySADReplacement() local
263 unsigned NumElts = OpTy->getNumElements(); in trySADReplacement()
326 NumElts = cast<FixedVectorType>(OpTy)->getNumElements(); in trySADReplacement()
H A DX86InstCombineIntrinsic.cpp648 Type *OpTy = Op1->getType(); in simplifyX86addcarry() local
650 RetTy->getStructElementType(1) == OpTy && OpTy == Op2->getType() && in simplifyX86addcarry()
655 Value *UAdd = Builder.CreateIntrinsic(Intrinsic::uadd_with_overflow, OpTy, in simplifyX86addcarry()
2918 auto *OpTy = cast<FixedVectorType>(II.getType()); in instCombineIntrinsic() local
2920 unsigned NumOperandElts = OpTy->getNumElements(); in instCombineIntrinsic()
2937 OpTy->getPrimitiveSizeInBits() && in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp849 Type *OpTy = nullptr; in getCmpOpsType() local
851 OpTy = CI->getOperand(0)->getType(); in getCmpOpsType()
856 OpTy = CI0->getOperand(0)->getType(); in getCmpOpsType()
858 if (OpTy != nullptr) { in getCmpOpsType()
860 assert (!OpTy->isVectorTy() && "Expected scalar type"); in getCmpOpsType()
861 return OpTy; in getCmpOpsType()
865 Type *ElTy = OpTy->getScalarType(); in getCmpOpsType()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp154 auto *OpTy = cast<TypedPointerType>(It->second)->getElementType(); in maybeGenerateBitcast() local
155 if (OpTy == Ty) in maybeGenerateBitcast()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanPatternMatch.h543 template <typename OpTy> bool match(OpTy *V) const { in match()
567 template <typename OpTy> bool match(OpTy *V) const { in match()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp3471 Type *OpTy = getTypeByID(OpTyID); in parseConstants() local
3472 if (!OpTy) in parseConstants()
3564 VectorType *OpTy = in parseConstants() local
3566 if (!OpTy) in parseConstants()
3585 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants() local
3586 if (Record.size() < 3 || !OpTy) in parseConstants()
3605 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants() local
3606 if (Record.size() < 3 || !OpTy) in parseConstants()
3615 VectorType *OpTy = in parseConstants() local
3617 if (Record.size() < 4 || !RTy || !OpTy) in parseConstants()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp1066 Type *OpTy = Op->getType(); in visitExtractValueInst() local
1068 if (!isStructOfMatchingFixedVectors(OpTy)) in visitExtractValueInst()
1081 Type *VecType = cast<FixedVectorType>(OpTy->getContainedType(0)); in visitExtractValueInst()
1085 for (unsigned I = 1; I < OpTy->getNumContainedTypes(); I++) { in visitExtractValueInst()
1087 getVectorSplit(cast<FixedVectorType>(OpTy->getContainedType(I))); in visitExtractValueInst()
H A DLoopStrengthReduce.cpp5672 Type *OpTy = LF.OperandValToReplace->getType(); in Expand() local
5677 Ty = OpTy; in Expand()
5678 else if (SE.getEffectiveSCEVType(Ty) == SE.getEffectiveSCEVType(OpTy)) in Expand()
5680 Ty = OpTy; in Expand()
5808 if (ICmpScaledV->getType() != OpTy) { in Expand()
5810 CastInst::getCastOpcode(ICmpScaledV, false, OpTy, false), in Expand()
5811 ICmpScaledV, OpTy, "tmp", CI->getIterator()); in Expand()
5821 Constant *C = ConstantInt::getSigned(SE.getEffectiveSCEVType(OpTy), in Expand()
5823 if (C->getType() != OpTy) { in Expand()
5825 CastInst::getCastOpcode(C, false, OpTy, false), C, OpTy, in Expand()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DGlobalISelEmitter.cpp1396 Expected<LLTCodeGen> OpTy = getInstResultType(N, Target); in importInstructionNodeRenderer() local
1397 if (!OpTy) in importInstructionNodeRenderer()
1398 return OpTy.takeError(); in importInstructionNodeRenderer()
1404 InsertPt = M.insertAction<MakeTempRegisterAction>(InsertPt, *OpTy, TempRegID); in importInstructionNodeRenderer()
1579 auto OpTy = MVTToLLT(ExtTy.getMachineValueType().SimpleTy); in importExplicitDefRenderers() local
1580 if (!OpTy) in importExplicitDefRenderers()
1585 M.insertAction<MakeTempRegisterAction>(InsertPt, *OpTy, TempRegID); in importExplicitDefRenderers()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp1122 MVT OpTy = ty(LHS); in LowerSETCC() local
1124 if (OpTy == MVT::v2i16 || OpTy == MVT::v4i8) { in LowerSETCC()
1125 MVT ElemTy = OpTy.getVectorElementType(); in LowerSETCC()
1128 OpTy.getVectorNumElements()); in LowerSETCC()
1163 if (OpTy == MVT::i8 || OpTy == MVT::i16) { in LowerSETCC()
1179 MVT OpTy = ty(Op1); in LowerVSELECT() local
1182 if (OpTy == MVT::v2i16 || OpTy == MVT::v4i8) { in LowerVSELECT()
1183 MVT ElemTy = OpTy.getVectorElementType(); in LowerVSELECT()
1186 OpTy.getVectorNumElements()); in LowerVSELECT()
1192 dl, OpTy); in LowerVSELECT()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.cpp434 LLT OpTy = MRI.getType(MI.getOperand(Idx).getReg()); in getSameKindOfOperandsMapping() local
437 RBIdx, OpTy.getSizeInBits()) == in getSameKindOfOperandsMapping()
440 bool OpIsFPR = OpTy.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
H A DAArch64PreLegalizerCombiner.cpp650 LLT OpTy = MRI.getType(ResVal); in tryToSimplifyUADDO() local
654 unsigned OpTySize = OpTy.getScalarSizeInBits(); in tryToSimplifyUADDO()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DComplexDeinterleavingPass.cpp1953 auto *OpTy = cast<FixedVectorType>(Op->getType()); in identifyDeinterleave() local
1955 if (OpTy->getScalarType() != ShuffleTy->getScalarType()) in identifyDeinterleave()
1957 if ((ShuffleTy->getNumElements() * 2) != OpTy->getNumElements()) in identifyDeinterleave()
1971 auto *OpTy = cast<FixedVectorType>(Op->getType()); in identifyDeinterleave() local
1972 int NumElements = OpTy->getNumElements(); in identifyDeinterleave()

123