/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 62 template <typename OpTy> bool match(OpTy *V) { in match() 76 template <typename OpTy> bool match(OpTy *V) { in match() 1030 template <typename OpTy> bool match(OpTy *V) { in match() 1053 template <typename OpTy> bool match(OpTy *V) { in match() 1078 template <typename OpTy> inline bool match(unsigned Opc, OpTy *V) { in match() 1088 template <typename OpTy> bool match(OpTy *V) { return match(Opcode, V); } in match() 1119 template <typename OpTy> bool match(OpTy *V) { in match() 1146 template <typename OpTy> inline FNeg_match<OpTy> m_FNeg(const OpTy &X) { in m_FNeg() 1147 return FNeg_match<OpTy>(X); in m_FNeg() 1250 template <typename OpTy> bool match(OpTy *V) { in match() [all …]
|
H A D | FixedPointBuilder.h | 177 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/Analysis/ |
H A D | CmpInstAnalysis.cpp | 40 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/lib/Target/SPIRV/ |
H A D | SPIRVEmitIntrinsics.cpp | 523 Type *OpTy = Op->getType(); in deduceNestedTypeHelper() local 524 Type *Ty = OpTy; in deduceNestedTypeHelper() 526 if (auto *PtrTy = dyn_cast<PointerType>(OpTy)) { in deduceNestedTypeHelper() 531 Ty = deduceNestedTypeHelper(dyn_cast<User>(Op), OpTy, Visited, in deduceNestedTypeHelper() 536 Change |= Ty != OpTy; in deduceNestedTypeHelper() 545 Type *OpTy = ArrTy->getElementType(); in deduceNestedTypeHelper() local 546 Type *Ty = OpTy; in deduceNestedTypeHelper() 547 if (auto *PtrTy = dyn_cast<PointerType>(OpTy)) { in deduceNestedTypeHelper() 552 Ty = deduceNestedTypeHelper(dyn_cast<User>(Op), OpTy, Visited, in deduceNestedTypeHelper() 555 if (Ty != OpTy) { in deduceNestedTypeHelper() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | CmpInstAnalysis.h | 54 Constant *getPredForICmpCode(unsigned Code, bool Sign, Type *OpTy, 91 Constant *getPredForFCmpCode(unsigned Code, Type *OpTy,
|
H A D | TargetTransformInfoImpl.h | 1277 Type *OpTy = Operands[0]->getType(); in getInstructionCost() local 1279 Opcode, Ty, OpTy, TTI::getCastContextHint(I), CostKind, I); in getInstructionCost()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | MIPatternMatch.h | 397 template <typename OpTy> 398 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) { 421 template <typename OpTy> 422 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) { 557 template <typename OpTy> 558 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) { 651 template <typename OpTy> 652 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) { 734 template <typename OpTy> 735 bool match(const MachineRegisterInfo &MRI, OpTy &&Op) {
|
H A D | LegalizationArtifactCombiner.h | 512 LLT OpTy, LLT DestTy) { in canFoldMergeOpcode() argument 543 return !DestTy.isVector() && OpTy.isVector() && in canFoldMergeOpcode() 544 DestTy == OpTy.getElementType(); in canFoldMergeOpcode() 551 const unsigned OpEltSize = OpTy.getElementType().getSizeInBits(); in canFoldMergeOpcode() 1066 LLT OpTy = MRI.getType(SrcReg); in tryCombineUnmergeValues() local 1091 {TargetOpcode::G_UNMERGE_VALUES, {OpTy, SrcUnmergeSrcTy}}); in tryCombineUnmergeValues() 1131 ConvertOp, OpTy, DestTy)) { in tryCombineUnmergeValues()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | InlineAsmLowering.cpp | 250 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 D | RISCVRegisterBankInfo.cpp | 318 LLT OpTy = MRI.getType(MI.getOperand(Idx).getReg()); in getInstrMapping() local 319 assert(Ty.isVector() == OpTy.isVector() && in getInstrMapping() 322 if (OpTy.isVector() || isPreISelGenericFloatingPointOpcode(Opc)) in getInstrMapping() 323 assert(Size == OpTy.getSizeInBits() && "Operand has incompatible size"); in getInstrMapping()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 726 Type *OpTy = nullptr; in getCmpOpsType() local 728 OpTy = CI->getOperand(0)->getType(); in getCmpOpsType() 733 OpTy = CI0->getOperand(0)->getType(); in getCmpOpsType() 735 if (OpTy != nullptr) { in getCmpOpsType() 737 assert (!OpTy->isVectorTy() && "Expected scalar type"); in getCmpOpsType() 738 return OpTy; in getCmpOpsType() 742 Type *ElTy = OpTy->getScalarType(); in getCmpOpsType()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LowerMemIntrinsics.cpp | 117 for (auto *OpTy : RemainingOps) { in createMemCpyLoopKnownSize() local 122 unsigned OperandSize = DL.getTypeStoreSize(OpTy); in createMemCpyLoopKnownSize() 132 OpTy, SrcAddr, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize() 134 RBuilder.CreateAlignedLoad(OpTy, SrcGEP, PartSrcAlign, SrcIsVolatile); in createMemCpyLoopKnownSize() 141 OpTy, DstAddr, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMInstrNEON.td | 2523 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 D | X86PartialReduction.cpp | 265 auto *OpTy = cast<FixedVectorType>(Op->getType()); in trySADReplacement() local 266 unsigned NumElts = OpTy->getNumElements(); in trySADReplacement() 329 NumElts = cast<FixedVectorType>(OpTy)->getNumElements(); in trySADReplacement()
|
H A D | X86InstCombineIntrinsic.cpp | 652 Type *OpTy = Op1->getType(); in simplifyX86addcarry() local 654 RetTy->getStructElementType(1) == OpTy && OpTy == Op2->getType() && in simplifyX86addcarry() 659 Value *UAdd = Builder.CreateIntrinsic(Intrinsic::uadd_with_overflow, OpTy, in simplifyX86addcarry() 2910 auto *OpTy = cast<FixedVectorType>(II.getType()); in instCombineIntrinsic() local 2912 unsigned NumOperandElts = OpTy->getNumElements(); in instCombineIntrinsic() 2929 OpTy->getPrimitiveSizeInBits() && in instCombineIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 3379 Type *OpTy = getTypeByID(OpTyID); in parseConstants() local 3380 if (!OpTy) in parseConstants() 3472 VectorType *OpTy = in parseConstants() local 3474 if (!OpTy) in parseConstants() 3493 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants() local 3494 if (Record.size() < 3 || !OpTy) in parseConstants() 3513 VectorType *OpTy = dyn_cast<VectorType>(CurTy); in parseConstants() local 3514 if (Record.size() < 3 || !OpTy) in parseConstants() 3523 VectorType *OpTy = in parseConstants() local 3525 if (Record.size() < 4 || !RTy || !OpTy) in parseConstants() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SIFoldOperands.cpp | 94 Register UseReg, uint8_t OpTy) const; 659 Register UseReg, uint8_t OpTy) const { in getRegSeqInit() 674 if (TII->isInlineConstant(*Op, OpTy)) in getRegSeqInit() 699 uint8_t OpTy = Desc.operands()[UseOpIdx].OperandType; in tryToFoldACImm() local 700 if (OpToFold.isImm() && TII->isInlineConstant(OpToFold, OpTy) && in tryToFoldACImm() 721 if (DefOp.isImm() && TII->isInlineConstant(DefOp, OpTy) && in tryToFoldACImm() 729 if (!getRegSeqInit(Defs, UseReg, OpTy)) in tryToFoldACImm() 741 if (!TII->isInlineConstant(*Op, OpTy) || in tryToFoldACImm()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | GlobalISelEmitter.cpp | 1249 auto OpTy = getInstResultType(DstChild, Target); in importExplicitUseRenderer() local 1250 if (!OpTy) in importExplicitUseRenderer() 1251 return OpTy.takeError(); in importExplicitUseRenderer() 1255 Rule.insertAction<MakeTempRegisterAction>(InsertPt, *OpTy, TempRegID); in importExplicitUseRenderer() 1557 auto OpTy = MVTToLLT(ExtTy.getMachineValueType().SimpleTy); in importExplicitDefRenderers() local 1558 if (!OpTy) in importExplicitDefRenderers() 1563 M.insertAction<MakeTempRegisterAction>(InsertPt, *OpTy, TempRegID); in importExplicitDefRenderers()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelLowering.cpp | 1053 MVT OpTy = ty(LHS); in LowerSETCC() local 1055 if (OpTy == MVT::v2i16 || OpTy == MVT::v4i8) { in LowerSETCC() 1056 MVT ElemTy = OpTy.getVectorElementType(); in LowerSETCC() 1059 OpTy.getVectorNumElements()); in LowerSETCC() 1094 if (OpTy == MVT::i8 || OpTy == MVT::i16) { in LowerSETCC() 1110 MVT OpTy = ty(Op1); in LowerVSELECT() local 1113 if (OpTy == MVT::v2i16 || OpTy in LowerVSELECT() 3010 MVT OpTy = ty(Op.getOperand(0)); LowerCONCAT_VECTORS() local [all...] |
H A D | HexagonISelDAGToDAG.cpp | 863 MVT OpTy = Op.getValueType().getSimpleVT(); in SelectTypecast() local 865 CurDAG->getVTList(OpTy), {Op}); in SelectTypecast() 889 MVT OpTy = N->getOperand(0).getValueType().getSimpleVT(); (void)OpTy; in SelectV2Q() local 890 assert(HST->getVectorLength() * 8 == OpTy.getSizeInBits()); in SelectV2Q()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64RegisterBankInfo.cpp | 459 LLT OpTy = MRI.getType(MI.getOperand(Idx).getReg()); in getSameKindOfOperandsMapping() local 462 RBIdx, OpTy.getSizeInBits()) == in getSameKindOfOperandsMapping() 465 bool OpIsFPR = OpTy.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
|
H A D | AArch64PreLegalizerCombiner.cpp | 650 LLT OpTy = MRI.getType(ResVal); in tryToSimplifyUADDO() local 654 unsigned OpTySize = OpTy.getScalarSizeInBits(); in tryToSimplifyUADDO()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopStrengthReduce.cpp | 5700 Type *OpTy = LF.OperandValToReplace->getType(); in Expand() local 5705 Ty = OpTy; in Expand() 5706 else if (SE.getEffectiveSCEVType(Ty) == SE.getEffectiveSCEVType(OpTy)) in Expand() 5708 Ty = OpTy; in Expand() 5836 if (ICmpScaledV->getType() != OpTy) { in Expand() 5838 CastInst::getCastOpcode(ICmpScaledV, false, OpTy, false), in Expand() 5839 ICmpScaledV, OpTy, "tmp", CI->getIterator()); in Expand() 5849 Constant *C = ConstantInt::getSigned(SE.getEffectiveSCEVType(OpTy), in Expand() 5851 if (C->getType() != OpTy) { in Expand() 5853 CastInst::getCastOpcode(C, false, OpTy, false), C, OpTy, in Expand() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ComplexDeinterleavingPass.cpp | 1731 auto *OpTy = cast<FixedVectorType>(Op->getType()); in identifyDeinterleave() local 1733 if (OpTy->getScalarType() != ShuffleTy->getScalarType()) in identifyDeinterleave() 1735 if ((ShuffleTy->getNumElements() * 2) != OpTy->getNumElements()) in identifyDeinterleave() 1749 auto *OpTy = cast<FixedVectorType>(Op->getType()); in identifyDeinterleave() local 1750 int NumElements = OpTy->getNumElements(); in identifyDeinterleave()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
H A D | AMDGPUInstPrinter.cpp | 819 const uint8_t OpTy = Desc.operands()[OpNo].OperandType; in printRegularOperand() local 820 switch (OpTy) { in printRegularOperand() 871 printImmediateV216(Op.getImm(), OpTy, STI, O); in printRegularOperand()
|