Home
last modified time | relevance | path

Searched refs:CastOp (Results 1 – 25 of 35) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.cpp151 std::optional<Instruction::CastOps> CastOp; in convertNvvmIntrinsicToLlvm() member
168 SimplifyAction(Instruction::CastOps CastOp) : CastOp(CastOp) {} in convertNvvmIntrinsicToLlvm()
382 if (Action.CastOp) in convertNvvmIntrinsicToLlvm()
383 return CastInst::Create(*Action.CastOp, II->getArgOperand(0), II->getType(), in convertNvvmIntrinsicToLlvm()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp171 auto CastOp = (Instruction::CastOps)I->getOpcode(); in walkBackwards() local
172 seen(I, validateRange(Input.castOp(CastOp, MaxIntegerBW+1))); in walkBackwards()
280 auto CastOp = (Instruction::CastOps)I->getOpcode(); in calcRange() local
281 return OpRanges[0].castOp(CastOp, MaxIntegerBW+1); in calcRange()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRMemorySlot.cpp125 bool cir::CastOp::canUsesBeRemoved( in canUsesBeRemoved()
134 DeletionKind cir::CastOp::removeBlockingUses( in removeBlockingUses()
H A DCIRDialect.cpp374 LogicalResult cir::CastOp::verify() { in verify()
497 static bool isIntOrBoolCast(cir::CastOp op) { in isIntOrBoolCast()
503 static Value tryFoldCastChain(cir::CastOp op) { in tryFoldCastChain()
504 cir::CastOp head = op, tail = op; in tryFoldCastChain()
510 op = dyn_cast_or_null<cir::CastOp>(head.getSrc().getDefiningOp()); in tryFoldCastChain()
532 OpFoldResult cir::CastOp::fold(FoldAdaptor adaptor) { in fold()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/OpenACC/
H A DCIROpenACCTypeInterfaces.cpp28 if (auto castOp = mlir::dyn_cast<cir::CastOp>(*op)) in getBaseType()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/Transforms/
H A DFlattenCFG.cpp208 cir::CastOp uDiffValue = rewriter.create<cir::CastOp>( in condBrToRangeDestination()
210 cir::CastOp uRangeLength = rewriter.create<cir::CastOp>( in condBrToRangeDestination()
H A DCIRCanonicalize.cpp143 if (isa<BrOp, BrCondOp, CastOp, ScopeOp, SwitchOp, SelectOp, UnaryOp, in runOnOperation()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenBuilder.cpp21 return create<cir::CastOp>(loc, flatPtrTy, cir::CastKind::array_to_ptrdecay, in maybeBuildArrayDecay()
H A DCIRGenExprAggregate.cpp138 auto begin = builder.create<cir::CastOp>(loc, cirElementPtrType, in emitArrayInit()
H A DCIRGenBuilder.h279 return create<cir::CastOp>(v.getLoc(), destType, cir::CastKind::floating, in createFloatingCast()
H A DCIRGenExprScalar.cpp256 return builder.create<cir::CastOp>(loc, boolTy, in emitFloatToBoolConversion()
267 return builder.create<cir::CastOp>(loc, boolTy, cir::CastKind::int_to_bool, in emitIntToBoolConversion()
371 return builder.create<cir::CastOp>(src.getLoc(), fullDstTy, *castKind, src); in emitScalarCast()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp402 Value *CastOp = in expandPredicationToCastIntrinsic() local
406 replaceOperation(*CastOp, VPI); in expandPredicationToCastIntrinsic()
407 return CastOp; in expandPredicationToCastIntrinsic()
H A DAtomicExpandPass.cpp1204 Instruction::CastOps CastOp = Instruction::ZExt; in expandAtomicRMWToMaskedIntrinsic() local
1207 CastOp = Instruction::SExt; in expandAtomicRMWToMaskedIntrinsic()
1210 Builder.CreateCast(CastOp, AI->getValOperand(), PMV.WordType), in expandAtomicRMWToMaskedIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp716 CastInst *CastOp; in foldBinOpIntoSelect() local
720 SelectInst *Sel = findSelectThroughCast(BO.getOperand(0), CastOp); in foldBinOpIntoSelect()
723 Sel = findSelectThroughCast(BO.getOperand(1), CastOp); in foldBinOpIntoSelect()
735 if (CastOp) { in foldBinOpIntoSelect()
736 if (!CastOp->hasOneUse()) in foldBinOpIntoSelect()
738 CT = ConstantFoldCastOperand(CastOp->getOpcode(), CT, BO.getType(), DL); in foldBinOpIntoSelect()
739 CF = ConstantFoldCastOperand(CastOp->getOpcode(), CF, BO.getType(), DL); in foldBinOpIntoSelect()
766 if (CastOp) in foldBinOpIntoSelect()
767 CastOp->eraseFromParent(); in foldBinOpIntoSelect()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILOpLowering.cpp704 unsigned CastOp; in lowerCtpopToCountBits() local
707 CastOp = Instruction::ZExt; in lowerCtpopToCountBits()
713 CastOp = Instruction::Trunc; in lowerCtpopToCountBits()
722 if (I && (I->getOpcode() == CastOp || I->getOpcode() == CastOp2) && in lowerCtpopToCountBits()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h294 Instruction::CastOps CastOp = in createScalarZExtOrTrunc() local
298 return createScalarCast(CastOp, Op, ResultTy, DL); in createScalarZExtOrTrunc()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h2217 Instruction::CastOps CastOp = variable
2221 return CreateCast(CastOp, V, DestTy, Name);
2225 Instruction::CastOps CastOp = variable
2229 return CreateCast(CastOp, V, DestTy, Name);
2233 Instruction::CastOps CastOp = variable
2237 return CreateCast(CastOp, V, DestTy, Name);
2281 Instruction::CastOps CastOp = variable
2285 return CreateCast(CastOp, V, DestTy, Name);
2302 Instruction::CastOps CastOp = variable
2306 return CreateCast(CastOp, V, DestTy, Name, FPMathTag);
H A DConstantRange.h365 LLVM_ABI ConstantRange castOp(Instruction::CastOps CastOp,
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h890 Instruction::CastOps *CastOp = nullptr, unsigned Depth = 0);
906 FastMathFlags FMF = FastMathFlags(), Instruction::CastOps *CastOp = nullptr,
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.h127 class CIRToLLVMCastOpLowering : public mlir::OpConversionPattern<cir::CastOp> {
139 matchAndRewrite(cir::CastOp op, OpAdaptor,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp2653 Value *CastOp; in visitAnd() local
2654 if (match(Op0, m_ElementWiseBitCast(m_Value(CastOp))) && in visitAnd()
2658 Type *EltTy = CastOp->getType()->getScalarType(); in visitAnd()
2661 Value *FAbs = Builder.CreateUnaryIntrinsic(Intrinsic::fabs, CastOp); in visitAnd()
4255 Value *CastOp; in visitOr() local
4256 if (match(Op0, m_ElementWiseBitCast(m_Value(CastOp))) && in visitOr()
4260 Type *EltTy = CastOp->getType()->getScalarType(); in visitOr()
4263 Value *FAbs = Builder.CreateUnaryIntrinsic(Intrinsic::fabs, CastOp); in visitOr()
5064 Value *CastOp; in visitXor() local
5065 if (match(Op0, m_ElementWiseBitCast(m_Value(CastOp))) && in visitXor()
[all …]
H A DInstructionCombining.cpp1057 Value *CastOp; in foldBinOpOfSelectAndCastOfSelectCondition() local
1059 auto MatchSelectAndCast = [&](Value *CastOp, Value *SelectOp) { in foldBinOpOfSelectAndCastOfSelectCondition() argument
1060 return match(CastOp, m_ZExtOrSExt(m_Value(A))) && in foldBinOpOfSelectAndCastOfSelectCondition()
1069 CastOp = LHS; in foldBinOpOfSelectAndCastOfSelectCondition()
1071 CastOp = RHS; in foldBinOpOfSelectAndCastOfSelectCondition()
1076 bool IsCastOpRHS = (CastOp == RHS); in foldBinOpOfSelectAndCastOfSelectCondition()
1077 bool IsZExt = isa<ZExtInst>(CastOp); in foldBinOpOfSelectAndCastOfSelectCondition()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp8790 Instruction::CastOps *CastOp) { in lookThroughCastConst() argument
8794 switch (*CastOp) { in lookThroughCastConst()
8861 ConstantFoldCastOperand(*CastOp, CastedTo, C->getType(), DL); in lookThroughCastConst()
8885 Instruction::CastOps *CastOp) { in lookThroughCast() argument
8890 *CastOp = Cast1->getOpcode(); in lookThroughCast()
8894 if (*CastOp == Cast2->getOpcode() && SrcTy == Cast2->getSrcTy()) in lookThroughCast()
8901 return lookThroughCastConst(CmpI, SrcTy, C, CastOp); in lookThroughCast()
8904 if (*CastOp == Instruction::Trunc) { in lookThroughCast()
8926 Instruction::CastOps *CastOp, in matchSelectPattern() argument
8943 CastOp, Depth); in matchSelectPattern()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h263 return create<cir::CastOp>(loc, newTy, kind, src); in createCast()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp788 ConstantRange ConstantRange::castOp(Instruction::CastOps CastOp, in castOp() argument
790 switch (CastOp) { in castOp()

12