Home
last modified time | relevance | path

Searched refs:Sext (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1296 SExtInst &Sext) { in transformSExtICmp() argument
1309 if (In->getType() != Sext.getType()) in transformSExtICmp()
1310 In = Builder.CreateIntCast(In, Sext.getType(), true /*SExt*/); in transformSExtICmp()
1312 return replaceInstUsesWith(Sext, In); in transformSExtICmp()
1321 KnownBits Known = computeKnownBits(Op0, 0, &Sext); in transformSExtICmp()
1330 ConstantInt::getAllOnesValue(Sext.getType()) : in transformSExtICmp()
1331 ConstantInt::getNullValue(Sext.getType()); in transformSExtICmp()
1332 return replaceInstUsesWith(Sext, V); in transformSExtICmp()
1363 if (Sext.getType() == In->getType()) in transformSExtICmp()
1364 return replaceInstUsesWith(Sext, In); in transformSExtICmp()
[all …]
H A DInstCombineInternal.h138 Instruction *visitSExt(SExtInst &Sext);
310 Instruction *transformSExtICmp(ICmpInst *Cmp, SExtInst &Sext);
H A DInstCombineAndOrXor.cpp2406 Value *Sext = Builder.CreateSExt(X, Ty); in visitAnd() local
2408 return BinaryOperator::CreateLShr(Sext, ShAmtC); in visitAnd()
4560 Value *Sext = Builder.CreateSExt(NotX, SextTy); in foldNot() local
4561 return CastInst::CreateBitOrPointerCast(Sext, Ty); in foldNot()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVELaneInterleavingPass.cpp366 bool Sext = isa<SExtInst>(I); in tryInterleave() local
368 : Sext ? Builder.CreateSExt(Shuffle, I->getType()) in tryInterleave()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIPeepholeSDWA.cpp123 bool Sext; member in __anon5b8513100111::SDWASrcOperand
130 SrcSel(SrcSel_), Abs(Abs_), Neg(Neg_), Sext(Sext_) {} in SDWASrcOperand()
140 bool getSext() const { return Sext; } in getSext()
326 assert(!Sext && in getSrcMods()
330 } else if (Sext) { in getSrcMods()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp782 auto *Sext = B.CreateSExt(BO, Instr->getType(), Instr->getName() + ".sext"); in narrowSDivOrSRem() local
787 Instr->replaceAllUsesWith(Sext); in narrowSDivOrSRem()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp79 bool Sext = false; member
83 bool hasIntModifiers() const { return Sext; } in hasIntModifiers()
95 Operand |= Sext ? SISrcMods::SEXT : 0u; in getIntModifiersOperand()
1202 OS << "abs:" << Mods.Abs << " neg: " << Mods.Neg << " sext:" << Mods.Sext; in operator <<()
3401 bool Sext = trySkipId("sext"); in parseRegOrImmWithIntInputMods() local
3402 if (Sext && !skipToken(AsmToken::LParen, "expected left paren after sext")) in parseRegOrImmWithIntInputMods()
3412 return Sext ? ParseStatus::Failure : Res; in parseRegOrImmWithIntInputMods()
3414 if (Sext && !skipToken(AsmToken::RParen, "expected closing parentheses")) in parseRegOrImmWithIntInputMods()
3418 Mods.Sext = Sext; in parseRegOrImmWithIntInputMods()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7463 GSext *Sext = cast<GSext>(getDefIgnoringCopies(MO.getReg(), MRI)); in matchSextOfTrunc() local
7464 GTrunc *Trunc = cast<GTrunc>(getDefIgnoringCopies(Sext->getSrcReg(), MRI)); in matchSextOfTrunc()
7466 Register Dst = Sext->getReg(0); in matchSextOfTrunc()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVSymbolicOperands.td1121 defm Sext : FunctionParameterAttributeOperand<1, [Kernel]>;
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYInstrInfo.td1158 // Sext & Zext Patterns
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp53761 bool Sext = Ext->getOpcode() == ISD::SIGN_EXTEND; in promoteExtBeforeAdd() local
53764 NSW = NSW || (Sext && DAG.willNotOverflowAdd(true, AddOp0, AddOp1)); in promoteExtBeforeAdd()
53765 NUW = NUW || (!Sext && DAG.willNotOverflowAdd(false, AddOp0, AddOp1)); in promoteExtBeforeAdd()
53769 if ((Sext && !NSW) || (!Sext && !NUW)) in promoteExtBeforeAdd()
53795 int64_t AddC = Sext ? AddOp1C->getSExtValue() : AddOp1C->getZExtValue(); in promoteExtBeforeAdd()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp14413 Value *Sext = Builder.CreateSExt(Cmp, IntVecTy); in EmitX86BuiltinExpr() local
14414 return Builder.CreateBitCast(Sext, FPVecTy); in EmitX86BuiltinExpr()