Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1227 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
1237 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
1242 assert(CondTy && "CondTy must exist");
1243 if (CondTy->isVectorTy())
1263 if (CondTy)
1264 CondTy = CondTy->getScalarType();
1266 Opcode, ValVTy->getScalarType(), CondTy, VecPred, CostKind, I);
1736 Type *CondTy = RetTy->getWithNewBitWidth(1); in getIntrinsicInstrCost() local
1738 thisT()->getCmpSelInstrCost(BinaryOperator::ICmp, RetTy, CondTy, in getIntrinsicInstrCost()
1741 thisT()->getCmpSelInstrCost(BinaryOperator::Select, RetTy, CondTy, in getIntrinsicInstrCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFTargetTransformInfo.h47 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
54 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp625 Type *CondTy = Type::getInt1Ty(Context); in Act() local
631 CondTy = VectorType::get(CondTy, VTy->getElementCount()); in Act()
633 Value *Cond = getRandomValue(CondTy); in Act()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp259 Type *CondTy, in getCmpSelInstrCost() argument
270 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
H A DHexagonTargetTransformInfo.h136 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h108 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
H A DSystemZTargetTransformInfo.cpp963 Type *CondTy, in getCmpSelInstrCost() argument
968 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
1044 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp1407 Type *CondTy, in getCmpSelInstrCost() argument
1412 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1416 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1421 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1426 if (CondTy->isVectorTy()) { in getCmpSelInstrCost()
1486 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1538 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
H A DRISCVTargetTransformInfo.h196 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.h123 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
H A DPPCTargetTransformInfo.cpp659 Type *CondTy, in getCmpSelInstrCost() argument
669 BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h658 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, in getCmpSelInstrCost() argument
1327 Type *CondTy = Operands[0]->getType(); in getInstructionCost() local
1328 return TargetTTI->getCmpSelInstrCost(Opcode, U->getType(), CondTy, in getInstructionCost()
H A DTargetTransformInfo.h1382 getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
2059 Type *CondTy,
2717 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, in getCmpSelInstrCost() argument
2721 return Impl.getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp3929 const LLT CondTy = MRI.getType(CarryOut); in lower() local
3938 auto Carry = MIRBuilder.buildICmp(CmpInst::ICMP_ULT, CondTy, TmpRes, LHS); in lower()
3948 MIRBuilder.buildICmp(CmpInst::ICMP_EQ, CondTy, NewRes, Zero); in lower()
3949 auto Carry2 = MIRBuilder.buildAnd(CondTy, ResEqZero, CarryIn); in lower()
3968 const LLT CondTy = MRI.getType(BorrowOut); in lower() local
3975 auto Borrow = MIRBuilder.buildICmp(CmpInst::ICMP_UGT, CondTy, TmpRes, LHS); in lower()
3985 MIRBuilder.buildICmp(CmpInst::ICMP_EQ, CondTy, TmpRes, Zero); in lower()
3986 auto Borrow2 = MIRBuilder.buildAnd(CondTy, TmpResEqZero, BorrowIn); in lower()
5304 const LLT CondTy = LLT::scalar(1); in narrowScalarShift() local
5324 auto IsShort = MIRBuilder.buildICmp(ICmpInst::ICMP_ULT, CondTy, Amt, NewBits); in narrowScalarShift()
[all …]
H A DCombinerHelper.cpp6687 LLT CondTy = MRI.getType(Select->getCondReg()); in tryFoldSelectOfConstants() local
6691 if (CondTy != LLT::scalar(1)) in tryFoldSelectOfConstants()
6731 Register Inner = MRI.createGenericVirtualRegister(CondTy); in tryFoldSelectOfConstants()
6742 Register Inner = MRI.createGenericVirtualRegister(CondTy); in tryFoldSelectOfConstants()
6799 Register Not = MRI.createGenericVirtualRegister(CondTy); in tryFoldSelectOfConstants()
6819 LLT CondTy = MRI.getType(Select->getCondReg()); in tryFoldBoolSelectToLogic() local
6823 if (CondTy.isScalableVector() || in tryFoldBoolSelectToLogic()
6824 (CondTy.isFixedVector() && in tryFoldBoolSelectToLogic()
6825 CondTy.getElementType().getScalarSizeInBits() != 1) || in tryFoldBoolSelectToLogic()
6826 CondTy.getScalarSizeInBits() != 1) in tryFoldBoolSelectToLogic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h160 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h212 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h242 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
H A DARMTargetTransformInfo.cpp922 Type *CondTy, in getCmpSelInstrCost() argument
999 if (ST->hasNEON() && ValTy->isVectorTy() && ISD == ISD::SELECT && CondTy) { in getCmpSelInstrCost()
1007 EVT SelCondTy = TLI->getValueType(DL, CondTy); in getCmpSelInstrCost()
1024 FixedVectorType *VecCondTy = dyn_cast_or_null<FixedVectorType>(CondTy); in getCmpSelInstrCost()
1065 BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp5703 IntegerType *CondTy = cast<IntegerType>(Cond->getType()); in eliminateDeadSwitchCases() local
5704 if (CondTy->getIntegerBitWidth() > 64 || in eliminateDeadSwitchCases()
5705 !DL.fitsInLegalInteger(CondTy->getIntegerBitWidth())) in eliminateDeadSwitchCases()
6959 auto *CondTy = cast<IntegerType>(SI->getCondition()->getType()); in ReduceSwitchRange() local
6960 if (CondTy->getIntegerBitWidth() > 64 || in ReduceSwitchRange()
6961 !DL.fitsInLegalInteger(CondTy->getIntegerBitWidth())) in ReduceSwitchRange()
7048 auto *CondTy = cast<IntegerType>(Condition->getType()); in simplifySwitchOfPowersOfTwo() local
7050 if (CondTy->getIntegerBitWidth() > 64 || in simplifySwitchOfPowersOfTwo()
7051 !DL.fitsInLegalInteger(CondTy->getIntegerBitWidth())) in simplifySwitchOfPowersOfTwo()
7055 IntrinsicCostAttributes(Intrinsic::cttz, CondTy, in simplifySwitchOfPowersOfTwo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp1016 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, in getCmpSelInstrCost() argument
1021 TTIImpl->getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp3041 llvm::Type *CondTy = Cond->getType(); in emitCondLikelihoodViaExpectIntrinsic() local
3042 assert(CondTy->isIntegerTy(1) && "expecting condition to be a boolean"); in emitCondLikelihoodViaExpectIntrinsic()
3044 CGM.getIntrinsic(llvm::Intrinsic::expect, CondTy); in emitCondLikelihoodViaExpectIntrinsic()
3046 llvm::ConstantInt::getBool(CondTy, LH == Stmt::LH_Likely); in emitCondLikelihoodViaExpectIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1408 LLT CondTy = MRI->getType(MI->getOperand(1).getReg()); in verifyPreISelGenericInstruction() local
1409 if (!SelTy.isValid() || !CondTy.isValid()) in verifyPreISelGenericInstruction()
1413 if (CondTy.isVector()) in verifyPreISelGenericInstruction()
1414 verifyVectorElementMatch(SelTy, CondTy, MI); in verifyPreISelGenericInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1017 Type *CondTy = SelectCond->getType(); in simplifyDivRemOfSelectWithZeroOp() local
1031 replaceUse(Op, NonNullOperand == 1 ? ConstantInt::getTrue(CondTy) in simplifyDivRemOfSelectWithZeroOp()
1032 : ConstantInt::getFalse(CondTy)); in simplifyDivRemOfSelectWithZeroOp()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp7882 QualType CondTy = Cond->getType(); in checkCondition() local
7885 if (S.getLangOpts().OpenCL && CondTy->isFloatingType()) { in checkCondition()
7887 << CondTy << Cond->getSourceRange(); in checkCondition()
7892 if (CondTy->isScalarType()) return false; in checkCondition()
7895 << CondTy << Cond->getSourceRange(); in checkCondition()
8196 QualType CondTy, SourceLocation QuestionLoc) { in OpenCLConvertScalarsToVectors() argument
8200 const VectorType *CV = CondTy->getAs<VectorType>(); in OpenCLConvertScalarsToVectors()
8217 << CondTy << OS.str(); in OpenCLConvertScalarsToVectors()
8233 const VectorType *CondTy = Cond->getType()->getAs<VectorType>(); in checkOpenCLConditionVector() local
8234 assert(CondTy); in checkOpenCLConditionVector()
[all …]

12