Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1363 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
1374 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
1379 assert(CondTy && "CondTy must exist");
1380 if (CondTy->isVectorTy())
1401 Opcode, ValVTy->getScalarType(), CondTy->getScalarType(), VecPred,
2055 Type *CondTy = RetTy->getWithNewBitWidth(1); in getIntrinsicInstrCost() local
2057 thisT()->getCmpSelInstrCost(BinaryOperator::ICmp, RetTy, CondTy, in getIntrinsicInstrCost()
2060 thisT()->getCmpSelInstrCost(BinaryOperator::Select, RetTy, CondTy, in getIntrinsicInstrCost()
2633 Type *CondTy = RetTy->getWithNewBitWidth(1); in getTypeBasedIntrinsicInstrCost() local
2638 Cost += thisT()->getCmpSelInstrCost(BinaryOperator::ICmp, RetTy, CondTy, in getTypeBasedIntrinsicInstrCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFTargetTransformInfo.h49 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
57 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp615 Type *CondTy = Type::getInt1Ty(Context); in Act() local
621 CondTy = VectorType::get(CondTy, VTy->getElementCount()); in Act()
623 Value *Cond = getRandomValue(CondTy); in Act()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp258 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, in getCmpSelInstrCost() argument
268 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
H A DHexagonTargetTransformInfo.h140 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelperCasts.cpp211 LLT CondTy = MRI.getType(Select->getCondReg()); in matchCastOfSelect() local
217 if (!isLegalOrBeforeLegalizer({TargetOpcode::G_SELECT, {DstTy, CondTy}})) in matchCastOfSelect()
H A DLegalizerHelper.cpp4585 const LLT CondTy = MRI.getType(CarryOut); in lower() local
4594 auto Carry = MIRBuilder.buildICmp(CmpInst::ICMP_ULT, CondTy, TmpRes, LHS); in lower()
4604 MIRBuilder.buildICmp(CmpInst::ICMP_EQ, CondTy, NewRes, Zero); in lower()
4605 auto Carry2 = MIRBuilder.buildAnd(CondTy, ResEqZero, CarryIn); in lower()
4624 const LLT CondTy = MRI.getType(BorrowOut); in lower() local
4631 auto Borrow = MIRBuilder.buildICmp(CmpInst::ICMP_UGT, CondTy, TmpRes, LHS); in lower()
4641 MIRBuilder.buildICmp(CmpInst::ICMP_EQ, CondTy, TmpRes, Zero); in lower()
4642 auto Borrow2 = MIRBuilder.buildAnd(CondTy, TmpResEqZero, BorrowIn); in lower()
5993 const LLT CondTy = LLT::scalar(1); in narrowScalarShift() local
6013 auto IsShort = MIRBuilder.buildICmp(ICmpInst::ICMP_ULT, CondTy, Amt, NewBits); in narrowScalarShift()
[all …]
H A DCombinerHelper.cpp6979 LLT CondTy = MRI.getType(Select->getCondReg()); in tryFoldSelectOfConstants() local
6983 if (CondTy != LLT::scalar(1)) in tryFoldSelectOfConstants()
7023 Register Inner = MRI.createGenericVirtualRegister(CondTy); in tryFoldSelectOfConstants()
7034 Register Inner = MRI.createGenericVirtualRegister(CondTy); in tryFoldSelectOfConstants()
7081 Register Not = MRI.createGenericVirtualRegister(CondTy); in tryFoldSelectOfConstants()
7108 Register Not = MRI.createGenericVirtualRegister(CondTy); in tryFoldSelectOfConstants()
7128 LLT CondTy = MRI.getType(Select->getCondReg()); in tryFoldBoolSelectToLogic() local
7132 if (CondTy.isScalableVector() || in tryFoldBoolSelectToLogic()
7133 (CondTy.isFixedVector() && in tryFoldBoolSelectToLogic()
7134 CondTy.getElementType().getScalarSizeInBits() != 1) || in tryFoldBoolSelectToLogic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp942 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, in getCmpSelInstrCost() argument
1018 if (ST->hasNEON() && ValTy->isVectorTy() && ISD == ISD::SELECT && CondTy) { in getCmpSelInstrCost()
1026 EVT SelCondTy = TLI->getValueType(DL, CondTy); in getCmpSelInstrCost()
1043 FixedVectorType *VecCondTy = dyn_cast_or_null<FixedVectorType>(CondTy); in getCmpSelInstrCost()
1083 return BaseCost * BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, in getCmpSelInstrCost()
2003 Type *CondTy = RetTy->getWithNewBitWidth(1); in getIntrinsicInstrCost() local
2006 2 * getCmpSelInstrCost(BinaryOperator::ICmp, RetTy, CondTy, Pred, in getIntrinsicInstrCost()
2008 2 * getCmpSelInstrCost(BinaryOperator::Select, RetTy, CondTy, Pred, in getIntrinsicInstrCost()
2104 Type *CondTy = RetTy->getWithNewBitWidth(1); in getIntrinsicInstrCost() local
2105 Cost += getCmpSelInstrCost(BinaryOperator::FCmp, FPTy, CondTy, in getIntrinsicInstrCost()
[all …]
H A DARMTargetTransformInfo.h248 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h115 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
H A DSystemZTargetTransformInfo.cpp1090 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, in getCmpSelInstrCost() argument
1094 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1180 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.h125 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
H A DPPCTargetTransformInfo.cpp660 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, in getCmpSelInstrCost() argument
669 Opcode, ValTy, CondTy, VecPred, CostKind, Op1Info, Op2Info, I); in getCmpSelInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp2037 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, in getCmpSelInstrCost() argument
2041 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
2045 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
2050 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
2071 if (CondTy->isVectorTy()) { in getCmpSelInstrCost()
2137 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
2192 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
H A DRISCVTargetTransformInfo.h228 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h775 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, in getCmpSelInstrCost() argument
1502 Type *CondTy = Operands[0]->getType(); in getInstructionCost() local
1503 return TargetTTI->getCmpSelInstrCost(Opcode, U->getType(), CondTy, in getInstructionCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h161 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
H A DX86TargetTransformInfo.cpp3314 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, in getCmpSelInstrCost() argument
3319 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
3382 if (CondTy && !ST->hasAVX()) in getCmpSelInstrCost()
3383 return getCmpSelInstrCost(Opcode, ValTy, CondTy, in getCmpSelInstrCost()
3386 getCmpSelInstrCost(Opcode, ValTy, CondTy, in getCmpSelInstrCost()
3389 getArithmeticInstrCost(Instruction::Or, CondTy, CostKind); in getCmpSelInstrCost()
3608 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
4768 Type *CondTy = RetTy->getWithNewBitWidth(1); in getIntrinsicInstrCost() local
4775 Cost += getCmpSelInstrCost(BinaryOperator::ICmp, RetTy, CondTy, in getIntrinsicInstrCost()
4777 Cost += getCmpSelInstrCost(BinaryOperator::Select, RetTy, CondTy, in getIntrinsicInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h245 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp5852 IntegerType *CondTy = cast<IntegerType>(Cond->getType()); in eliminateDeadSwitchCases() local
5853 if (CondTy->getIntegerBitWidth() > 64 || in eliminateDeadSwitchCases()
5854 !DL.fitsInLegalInteger(CondTy->getIntegerBitWidth())) in eliminateDeadSwitchCases()
7139 auto *CondTy = cast<IntegerType>(SI->getCondition()->getType()); in reduceSwitchRange() local
7140 if (CondTy->getIntegerBitWidth() > 64 || in reduceSwitchRange()
7141 !DL.fitsInLegalInteger(CondTy->getIntegerBitWidth())) in reduceSwitchRange()
7230 auto *CondTy = cast<IntegerType>(Condition->getType()); in simplifySwitchOfPowersOfTwo() local
7232 if (CondTy->getIntegerBitWidth() > 64 || in simplifySwitchOfPowersOfTwo()
7233 !DL.fitsInLegalInteger(CondTy->getIntegerBitWidth())) in simplifySwitchOfPowersOfTwo()
7237 IntrinsicCostAttributes Attrs(Intrinsic::cttz, CondTy, in simplifySwitchOfPowersOfTwo()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp3247 llvm::Type *CondTy = Cond->getType(); in emitCondLikelihoodViaExpectIntrinsic() local
3248 assert(CondTy->isIntegerTy(1) && "expecting condition to be a boolean"); in emitCondLikelihoodViaExpectIntrinsic()
3250 CGM.getIntrinsic(llvm::Intrinsic::expect, CondTy); in emitCondLikelihoodViaExpectIntrinsic()
3252 llvm::ConstantInt::getBool(CondTy, LH == Stmt::LH_Likely); in emitCondLikelihoodViaExpectIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp1085 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred, in getCmpSelInstrCost() argument
1091 Opcode, ValTy, CondTy, VecPred, CostKind, Op1Info, Op2Info, I); in getCmpSelInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1469 LLT CondTy = MRI->getType(MI->getOperand(1).getReg()); in verifyPreISelGenericInstruction() local
1470 if (!SelTy.isValid() || !CondTy.isValid()) in verifyPreISelGenericInstruction()
1474 if (CondTy.isVector()) in verifyPreISelGenericInstruction()
1475 verifyVectorElementMatch(SelTy, CondTy, MI); in verifyPreISelGenericInstruction()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprCXX.cpp5634 QualType CondTy) { in isValidVectorForConditionalCondition() argument
5635 if (!CondTy->isVectorType() && !CondTy->isExtVectorType()) in isValidVectorForConditionalCondition()
5638 cast<VectorType>(CondTy.getCanonicalType())->getElementType(); in isValidVectorForConditionalCondition()
5644 QualType CondTy) { in isValidSizelessVectorForConditionalCondition() argument
5645 if (!CondTy->isSveVLSBuiltinType()) in isValidSizelessVectorForConditionalCondition()
5648 cast<BuiltinType>(CondTy.getCanonicalType())->getSveEltType(Ctx); in isValidSizelessVectorForConditionalCondition()

12