Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1347 SExtInst &Sext) { in transformSExtICmp() argument
1360 if (In->getType() != Sext.getType()) in transformSExtICmp()
1361 In = Builder.CreateIntCast(In, Sext.getType(), true /*SExt*/); in transformSExtICmp()
1363 return replaceInstUsesWith(Sext, In); in transformSExtICmp()
1372 KnownBits Known = computeKnownBits(Op0, &Sext); in transformSExtICmp()
1381 ConstantInt::getAllOnesValue(Sext.getType()) : in transformSExtICmp()
1382 ConstantInt::getNullValue(Sext.getType()); in transformSExtICmp()
1383 return replaceInstUsesWith(Sext, V); in transformSExtICmp()
1414 if (Sext.getType() == In->getType()) in transformSExtICmp()
1415 return replaceInstUsesWith(Sext, In); in transformSExtICmp()
[all …]
H A DInstCombineInternal.h137 Instruction *visitSExt(SExtInst &Sext);
311 Instruction *transformSExtICmp(ICmpInst *Cmp, SExtInst &Sext);
H A DInstCombineAndOrXor.cpp2483 Value *Sext = Builder.CreateSExt(X, Ty); in visitAnd() local
2485 return BinaryOperator::CreateLShr(Sext, ShAmtC); in visitAnd()
4826 Value *Sext = Builder.CreateSExt(NotX, SextTy); in foldNot() local
4827 return new BitCastInst(Sext, Ty); in foldNot()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelperCasts.cpp30 GSext *Sext = cast<GSext>(getDefIgnoringCopies(MO.getReg(), MRI)); in matchSextOfTrunc() local
31 GTrunc *Trunc = cast<GTrunc>(getDefIgnoringCopies(Sext->getSrcReg(), MRI)); in matchSextOfTrunc()
33 Register Dst = Sext->getReg(0); in matchSextOfTrunc()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVELaneInterleavingPass.cpp360 bool Sext = isa<SExtInst>(I); in tryInterleave() local
362 : Sext ? Builder.CreateSExt(Shuffle, I->getType()) in tryInterleave()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIPeepholeSDWA.cpp135 bool Sext; member in __anon5b8513100111::SDWASrcOperand
142 Neg(Neg_), Sext(Sext_) {} in SDWASrcOperand()
154 bool getSext() const { return Sext; } in getSext()
375 assert(!Sext && in getSrcMods()
379 } else if (Sext) { in getSrcMods()
445 if (Sext) in convertToSDWA()
H A DAMDGPURegBankLegalizeHelper.cpp950 auto Sext = B.buildSExt(SgprRB_S32, Reg); in applyMappingSrc() local
951 Op.setReg(Sext.getReg(0)); in applyMappingSrc()
965 auto Sext = B.buildSExt({VgprRB, S32}, Reg); in applyMappingSrc() local
966 Op.setReg(Sext.getReg(0)); in applyMappingSrc()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp804 auto *Sext = B.CreateSExt(BO, Instr->getType(), Instr->getName() + ".sext"); in narrowSDivOrSRem() local
809 Instr->replaceAllUsesWith(Sext); in narrowSDivOrSRem()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp82 bool Sext = false; member
87 bool hasIntModifiers() const { return Sext; } in hasIntModifiers()
99 Operand |= Sext ? SISrcMods::SEXT : 0u; in getIntModifiersOperand()
1255 OS << "abs:" << Mods.Abs << " neg: " << Mods.Neg << " sext:" << Mods.Sext; in operator <<()
3541 bool Sext = trySkipId("sext"); in parseRegOrImmWithIntInputMods() local
3542 if (Sext && !skipToken(AsmToken::LParen, "expected left paren after sext")) in parseRegOrImmWithIntInputMods()
3552 return Sext ? ParseStatus::Failure : Res; in parseRegOrImmWithIntInputMods()
3554 if (Sext && !skipToken(AsmToken::RParen, "expected closing parentheses")) in parseRegOrImmWithIntInputMods()
3558 Mods.Sext = Sext; in parseRegOrImmWithIntInputMods()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DX86.cpp792 Value *Sext = Builder.CreateSExt(Cmp, IntVecTy); in EmitX86BuiltinExpr() local
793 return Builder.CreateBitCast(Sext, FPVecTy); in EmitX86BuiltinExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVSymbolicOperands.td1175 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.cpp55624 bool Sext = Ext->getOpcode() == ISD::SIGN_EXTEND; in promoteExtBeforeAdd() local
55627 NSW = NSW || (Sext && DAG.willNotOverflowAdd(true, AddOp0, AddOp1)); in promoteExtBeforeAdd()
55628 NUW = NUW || (!Sext && DAG.willNotOverflowAdd(false, AddOp0, AddOp1)); in promoteExtBeforeAdd()
55632 if ((Sext && !NSW) || (!Sext && !NUW)) in promoteExtBeforeAdd()
55658 int64_t AddC = Sext ? AddOp1C->getSExtValue() : AddOp1C->getZExtValue(); in promoteExtBeforeAdd()