Home
last modified time | relevance | path

Searched refs:AndI (Results 1 – 24 of 24) sorted by relevance

/external/llvm-project/llvm/lib/Transforms/Scalar/
DConstraintElimination.cpp239 auto *AndI = cast<Instruction>(Br->getCondition()); in eliminateConstraints() local
241 cast<CmpInst>(AndI->getOperand(0)), false); in eliminateConstraints()
243 cast<CmpInst>(AndI->getOperand(1)), false); in eliminateConstraints()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1529 static bool sinkAndCmp0Expression(Instruction *AndI, in sinkAndCmp0Expression() argument
1534 assert(!InsertedInsts.count(AndI) && in sinkAndCmp0Expression()
1539 if (AndI->hasOneUse() && in sinkAndCmp0Expression()
1540 AndI->getParent() == cast<Instruction>(*AndI->user_begin())->getParent()) in sinkAndCmp0Expression()
1545 if (!isa<ConstantInt>(AndI->getOperand(0)) && in sinkAndCmp0Expression()
1546 !isa<ConstantInt>(AndI->getOperand(1)) && in sinkAndCmp0Expression()
1547 AndI->getOperand(0)->hasOneUse() && AndI->getOperand(1)->hasOneUse()) in sinkAndCmp0Expression()
1550 for (auto *U : AndI->users()) { in sinkAndCmp0Expression()
1562 if (!TLI.isMaskAndCmp0FoldingBeneficial(*AndI)) in sinkAndCmp0Expression()
1566 LLVM_DEBUG(AndI->getParent()->dump()); in sinkAndCmp0Expression()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1628 static bool sinkAndCmp0Expression(Instruction *AndI, in sinkAndCmp0Expression() argument
1633 assert(!InsertedInsts.count(AndI) && in sinkAndCmp0Expression()
1638 if (AndI->hasOneUse() && in sinkAndCmp0Expression()
1639 AndI->getParent() == cast<Instruction>(*AndI->user_begin())->getParent()) in sinkAndCmp0Expression()
1644 if (!isa<ConstantInt>(AndI->getOperand(0)) && in sinkAndCmp0Expression()
1645 !isa<ConstantInt>(AndI->getOperand(1)) && in sinkAndCmp0Expression()
1646 AndI->getOperand(0)->hasOneUse() && AndI->getOperand(1)->hasOneUse()) in sinkAndCmp0Expression()
1649 for (auto *U : AndI->users()) { in sinkAndCmp0Expression()
1661 if (!TLI.isMaskAndCmp0FoldingBeneficial(*AndI)) in sinkAndCmp0Expression()
1665 LLVM_DEBUG(AndI->getParent()->dump()); in sinkAndCmp0Expression()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp592 if (auto *AndI = dyn_cast<Instruction>(And)) { in foldShiftedShift() local
593 AndI->moveBefore(InnerShift); in foldShiftedShift()
594 AndI->takeName(InnerShift); in foldShiftedShift()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp569 if (auto *AndI = dyn_cast<Instruction>(And)) { in foldShiftedShift() local
570 AndI->moveBefore(InnerShift); in foldShiftedShift()
571 AndI->takeName(InnerShift); in foldShiftedShift()
/external/llvm-project/llvm/lib/Target/ARM/
DARMInstructionSelector.cpp1107 auto AndI = BuildMI(MBB, InsertBefore, I.getDebugLoc(), TII.get(Opcodes.AND)) in select() local
1113 if (!constrainSelectedInstRegOperands(*AndI, TII, TRI, RBI)) in select()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMInstructionSelector.cpp1109 auto AndI = BuildMI(MBB, InsertBefore, I.getDebugLoc(), TII.get(Opcodes.AND)) in select() local
1115 if (!constrainSelectedInstRegOperands(*AndI, TII, TRI, RBI)) in select()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h541 bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const override;
DAArch64ISelLowering.cpp13268 const Instruction &AndI) const { in isMaskAndCmp0FoldingBeneficial()
13274 ConstantInt* Mask = dyn_cast<ConstantInt>(AndI.getOperand(1)); in isMaskAndCmp0FoldingBeneficial()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCISelLowering.h1248 bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const override;
DPPCISelDAGToDAG.cpp4849 SDValue AndI(CurDAG->getMachineNode(Opcode, dl, InVT, MVT::Glue, in Select() local
4859 SRIdxVal, SDValue(AndI.getNode(), 1) /* glue */); in Select()
DPPCISelLowering.cpp15777 isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const { in isMaskAndCmp0FoldingBeneficial()
15778 const Value *Mask = AndI.getOperand(1); in isMaskAndCmp0FoldingBeneficial()
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h682 bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const override;
DAArch64ISelLowering.cpp16202 const Instruction &AndI) const { in isMaskAndCmp0FoldingBeneficial()
16208 ConstantInt* Mask = dyn_cast<ConstantInt>(AndI.getOperand(1)); in isMaskAndCmp0FoldingBeneficial()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCISelLowering.h1321 bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const override;
DPPCISelDAGToDAG.cpp5010 SDValue AndI(CurDAG->getMachineNode(Opcode, dl, InVT, MVT::Glue, in Select() local
5020 SRIdxVal, SDValue(AndI.getNode(), 1) /* glue */); in Select()
DPPCISelLowering.cpp16932 isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const { in isMaskAndCmp0FoldingBeneficial()
16933 const Value *Mask = AndI.getOperand(1); in isMaskAndCmp0FoldingBeneficial()
/external/llvm-project/llvm/lib/Target/X86/
DX86ISelLowering.h998 bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const override;
DX86ISelLowering.cpp5347 const Instruction &AndI) const { in isMaskAndCmp0FoldingBeneficial()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelLowering.h886 bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const override;
DX86ISelLowering.cpp5207 const Instruction &AndI) const { in isMaskAndCmp0FoldingBeneficial()
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp2750 SDValue AndI(CurDAG->getMachineNode(Opcode, dl, InVT, MVT::Glue, in Select() local
2760 SRIdxVal, SDValue(AndI.getNode(), 1) /* glue */); in Select()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DTargetLowering.h507 virtual bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const { in isMaskAndCmp0FoldingBeneficial() argument
/external/llvm-project/llvm/include/llvm/CodeGen/
DTargetLowering.h642 virtual bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const { in isMaskAndCmp0FoldingBeneficial() argument