Home
last modified time | relevance | path

Searched refs:getOpcode (Results 1 – 25 of 2284) sorted by relevance

12345678910>>...92

/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64MacroFusion.cpp25 if (SecondMI.getOpcode() != AArch64::Bcc) in isArithmeticBccPair()
32 switch (FirstMI->getOpcode()) { in isArithmeticBccPair()
66 if (SecondMI.getOpcode() != AArch64::CBZW && in isArithmeticCbzPair()
67 SecondMI.getOpcode() != AArch64::CBZX && in isArithmeticCbzPair()
68 SecondMI.getOpcode() != AArch64::CBNZW && in isArithmeticCbzPair()
69 SecondMI.getOpcode() != AArch64::CBNZX) in isArithmeticCbzPair()
76 switch (FirstMI->getOpcode()) { in isArithmeticCbzPair()
117 switch (SecondMI.getOpcode()) { in isAESPair()
121 return FirstMI == nullptr || FirstMI->getOpcode() == AArch64::AESErr; in isAESPair()
125 return FirstMI == nullptr || FirstMI->getOpcode() == AArch64::AESDrr; in isAESPair()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64MacroFusion.cpp25 if (SecondMI.getOpcode() != AArch64::Bcc) in isArithmeticBccPair()
32 switch (FirstMI->getOpcode()) { in isArithmeticBccPair()
66 if (SecondMI.getOpcode() != AArch64::CBZW && in isArithmeticCbzPair()
67 SecondMI.getOpcode() != AArch64::CBZX && in isArithmeticCbzPair()
68 SecondMI.getOpcode() != AArch64::CBNZW && in isArithmeticCbzPair()
69 SecondMI.getOpcode() != AArch64::CBNZX) in isArithmeticCbzPair()
76 switch (FirstMI->getOpcode()) { in isArithmeticCbzPair()
117 switch (SecondMI.getOpcode()) { in isAESPair()
121 return FirstMI == nullptr || FirstMI->getOpcode() == AArch64::AESErr; in isAESPair()
125 return FirstMI == nullptr || FirstMI->getOpcode() == AArch64::AESDrr; in isAESPair()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DInstructionWriter.java116 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
125 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
134 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
143 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
152 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
161 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
171 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
181 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
191 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
201 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
[all …]
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h163 inline unsigned getOpcode() const;
461 unsigned getOpcode() const { return (unsigned short)NodeType; }
868 inline unsigned SDValue::getOpcode() const {
869 return Node->getOpcode();
963 return isBinOpWithFlags(N->getOpcode());
1006 return N->getOpcode() == ISD::ADDRSPACECAST;
1090 return getOperand(getOpcode() == ISD::STORE ? 2 : 1);
1097 return N->getOpcode() == ISD::LOAD ||
1098 N->getOpcode() == ISD::STORE ||
1099 N->getOpcode() == ISD::PREFETCH ||
[all …]
/external/llvm-project/llvm/unittests/Transforms/Utils/
DIntegerDivisionTest.cpp41 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()
46 EXPECT_TRUE(BB->front().getOpcode() == Instruction::AShr); in TEST()
49 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); in TEST()
71 EXPECT_TRUE(BB->front().getOpcode() == Instruction::UDiv); in TEST()
76 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
79 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); in TEST()
101 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SRem); in TEST()
106 EXPECT_TRUE(BB->front().getOpcode() == Instruction::AShr); in TEST()
109 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST()
131 EXPECT_TRUE(BB->front().getOpcode() == Instruction::URem); in TEST()
[all …]
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp42 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()
47 EXPECT_TRUE(BB->front().getOpcode() == Instruction::AShr); in TEST()
50 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); in TEST()
72 EXPECT_TRUE(BB->front().getOpcode() == Instruction::UDiv); in TEST()
77 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST()
80 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); in TEST()
102 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SRem); in TEST()
107 EXPECT_TRUE(BB->front().getOpcode() == Instruction::AShr); in TEST()
110 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST()
132 EXPECT_TRUE(BB->front().getOpcode() == Instruction::URem); in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h187 inline unsigned getOpcode() const;
663 unsigned getOpcode() const { return (unsigned short)NodeType; }
895 if (TopologicalPrune && M->getOpcode() != ISD::TokenFactor && (NId > 0) &&
1149 inline unsigned SDValue::getOpcode() const {
1150 return Node->getOpcode();
1281 return N->getOpcode() == ISD::ADDRSPACECAST;
1388 return getOperand(getOpcode() == ISD::STORE ? 2 : 1);
1395 return N->getOpcode() == ISD::LOAD ||
1396 N->getOpcode() == ISD::STORE ||
1397 N->getOpcode() == ISD::PREFETCH ||
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h111 unsigned getOpcode() const { return getValueID() - InstructionVal; } in getOpcode() function
113 const char *getOpcodeName() const { return getOpcodeName(getOpcode()); } in getOpcodeName()
114 bool isTerminator() const { return isTerminator(getOpcode()); } in isTerminator()
115 bool isBinaryOp() const { return isBinaryOp(getOpcode()); } in isBinaryOp()
116 bool isShift() { return isShift(getOpcode()); } in isShift()
117 bool isCast() const { return isCast(getOpcode()); } in isCast()
118 bool isFuncletPad() const { return isFuncletPad(getOpcode()); } in isFuncletPad()
137 return getOpcode() == Shl || getOpcode() == LShr; in isLogicalShift()
142 return getOpcode() == AShr; in isArithmeticShift()
147 return getOpcode() == And || getOpcode() == Or || getOpcode() == Xor; in isBitwiseLogicOp()
[all …]
/external/llvm-project/llvm/lib/Target/BPF/
DBPFMIChecking.cpp157 if (MI.getOpcode() != BPF::XADDW && in processAtomicInsts()
158 MI.getOpcode() != BPF::XADDD && in processAtomicInsts()
159 MI.getOpcode() != BPF::XADDW32) in processAtomicInsts()
188 if (MI.getOpcode() != BPF::XFADDW32 && MI.getOpcode() != BPF::XFADDD && in processAtomicInsts()
189 MI.getOpcode() != BPF::XFANDW32 && MI.getOpcode() != BPF::XFANDD && in processAtomicInsts()
190 MI.getOpcode() != BPF::XFXORW32 && MI.getOpcode() != BPF::XFXORD && in processAtomicInsts()
191 MI.getOpcode() != BPF::XFORW32 && MI.getOpcode() != BPF::XFORD) in processAtomicInsts()
199 switch (MI.getOpcode()) { in processAtomicInsts()
/external/llvm-project/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h187 inline unsigned getOpcode() const;
607 unsigned getOpcode() const { return (unsigned short)NodeType; }
841 if (TopologicalPrune && M->getOpcode() != ISD::TokenFactor && (NId > 0) &&
1097 inline unsigned SDValue::getOpcode() const {
1098 return Node->getOpcode();
1229 return N->getOpcode() == ISD::ADDRSPACECAST;
1339 switch (getOpcode()) {
1355 return N->getOpcode() == ISD::LOAD ||
1356 N->getOpcode() == ISD::STORE ||
1357 N->getOpcode() == ISD::PREFETCH ||
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCBranchSelector.cpp147 if (I->getOpcode() == PPC::BCC && !I->getOperand(2).isImm()) in runOnMachineFunction()
149 else if ((I->getOpcode() == PPC::BC || I->getOpcode() == PPC::BCn) && in runOnMachineFunction()
152 else if ((I->getOpcode() == PPC::BDNZ8 || I->getOpcode() == PPC::BDNZ || in runOnMachineFunction()
153 I->getOpcode() == PPC::BDZ8 || I->getOpcode() == PPC::BDZ) && in runOnMachineFunction()
192 if (I->getOpcode() == PPC::BCC) { in runOnMachineFunction()
203 } else if (I->getOpcode() == PPC::BC) { in runOnMachineFunction()
206 } else if (I->getOpcode() == PPC::BCn) { in runOnMachineFunction()
209 } else if (I->getOpcode() == PPC::BDNZ) { in runOnMachineFunction()
211 } else if (I->getOpcode() == PPC::BDNZ8) { in runOnMachineFunction()
213 } else if (I->getOpcode() == PPC::BDZ) { in runOnMachineFunction()
[all …]
/external/llvm/include/llvm/IR/
DOperator.h48 unsigned getOpcode() const { in getOpcode() function
50 return I->getOpcode(); in getOpcode()
51 return cast<ConstantExpr>(this)->getOpcode(); in getOpcode()
56 static unsigned getOpcode(const Value *V) { in getOpcode() function
58 return I->getOpcode(); in getOpcode()
60 return CE->getOpcode(); in getOpcode()
107 return I->getOpcode() == Instruction::Add || in classof()
108 I->getOpcode() == Instruction::Sub || in classof()
109 I->getOpcode() == Instruction::Mul || in classof()
110 I->getOpcode() == Instruction::Shl; in classof()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstruction.h125 unsigned getOpcode() const { return getValueID() - InstructionVal; }
127 const char *getOpcodeName() const { return getOpcodeName(getOpcode()); }
128 bool isTerminator() const { return isTerminator(getOpcode()); }
129 bool isUnaryOp() const { return isUnaryOp(getOpcode()); }
130 bool isBinaryOp() const { return isBinaryOp(getOpcode()); }
131 bool isIntDivRem() const { return isIntDivRem(getOpcode()); }
132 bool isShift() const { return isShift(getOpcode()); }
133 bool isCast() const { return isCast(getOpcode()); }
134 bool isFuncletPad() const { return isFuncletPad(getOpcode()); }
136 return isExceptionalTerminator(getOpcode());
[all …]
/external/llvm/lib/Target/Lanai/
DLanaiISelDAGToDAG.cpp114 if (Addr.getOpcode() == ISD::OR && in selectAddrSls()
115 Addr.getOperand(1).getOpcode() == LanaiISD::SMALL) { in selectAddrSls()
164 if ((Addr.getOpcode() == ISD::TargetExternalSymbol || in selectAddrRiSpls()
165 Addr.getOpcode() == ISD::TargetGlobalAddress)) in selectAddrRiSpls()
169 ISD::NodeType AluOperator = static_cast<ISD::NodeType>(Addr.getOpcode()); in selectAddrRiSpls()
193 Addr.getOperand(1).getOpcode() == LanaiISD::SMALL) in selectAddrRiSpls()
215 if (Addr.getOpcode() == ISD::FrameIndex) in selectAddrRr()
219 if ((Addr.getOpcode() == ISD::TargetExternalSymbol || in selectAddrRr()
220 Addr.getOpcode() == ISD::TargetGlobalAddress)) in selectAddrRr()
224 ISD::NodeType AluOperator = static_cast<ISD::NodeType>(Addr.getOpcode()); in selectAddrRr()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonNewValueJump.cpp133 if (II->getOpcode() == TargetOpcode::KILL) in INITIALIZE_PASS_DEPENDENCY()
183 if (MII->getOpcode() == Hexagon::J2_call) in commonChecksToProhibitNewValueJump()
197 if (MII->getOpcode() == TargetOpcode::KILL || in commonChecksToProhibitNewValueJump()
198 MII->getOpcode() == TargetOpcode::PHI || in commonChecksToProhibitNewValueJump()
199 MII->getOpcode() == TargetOpcode::COPY) in commonChecksToProhibitNewValueJump()
206 if (MII->getOpcode() == Hexagon::LDriw_pred || in commonChecksToProhibitNewValueJump()
207 MII->getOpcode() == Hexagon::STriw_pred) in commonChecksToProhibitNewValueJump()
230 if (!(isUInt<5>(v) || ((MI.getOpcode() == Hexagon::C2_cmpeqi || in canCompareBeNewValueJump()
231 MI.getOpcode() == Hexagon::C2_cmpgti) && in canCompareBeNewValueJump()
248 if (def->getOpcode() == TargetOpcode::COPY) in canCompareBeNewValueJump()
[all …]
/external/llvm/include/llvm/MC/
DMCInstrAnalysis.h35 return Info->get(Inst.getOpcode()).isBranch(); in isBranch()
39 return Info->get(Inst.getOpcode()).isConditionalBranch(); in isConditionalBranch()
43 return Info->get(Inst.getOpcode()).isUnconditionalBranch(); in isUnconditionalBranch()
47 return Info->get(Inst.getOpcode()).isIndirectBranch(); in isIndirectBranch()
51 return Info->get(Inst.getOpcode()).isCall(); in isCall()
55 return Info->get(Inst.getOpcode()).isReturn(); in isReturn()
59 return Info->get(Inst.getOpcode()).isTerminator(); in isTerminator()
/external/llvm-project/llvm/lib/Target/VE/
DVEISelDAGToDAG.cpp160 if (Addr.getOpcode() == ISD::FrameIndex) in selectADDRrri()
162 if (Addr.getOpcode() == ISD::TargetExternalSymbol || in selectADDRrri()
163 Addr.getOpcode() == ISD::TargetGlobalAddress || in selectADDRrri()
164 Addr.getOpcode() == ISD::TargetGlobalTLSAddress) in selectADDRrri()
225 if (Addr.getOpcode() == ISD::TargetExternalSymbol || in selectADDRzii()
226 Addr.getOpcode() == ISD::TargetGlobalAddress || in selectADDRzii()
227 Addr.getOpcode() == ISD::TargetGlobalTLSAddress) in selectADDRzii()
255 if (Addr.getOpcode() == ISD::TargetExternalSymbol || in matchADDRrr()
256 Addr.getOpcode() == ISD::TargetGlobalAddress || in matchADDRrr()
257 Addr.getOpcode() == ISD::TargetGlobalTLSAddress) in matchADDRrr()
[all …]
/external/llvm/lib/Target/AMDGPU/
DR600EmitClauseMarkers.cpp42 switch (MI.getOpcode()) { in OccupiedDwords()
56 if (TII->isLDSRetInstr(MI.getOpcode())) in OccupiedDwords()
59 if (TII->isVector(MI) || TII->isCubeOp(MI.getOpcode()) || in OccupiedDwords()
60 TII->isReductionOp(MI.getOpcode())) in OccupiedDwords()
75 if (TII->isALUInstr(MI.getOpcode())) in isALU()
77 if (TII->isVector(MI) || TII->isCubeOp(MI.getOpcode())) in isALU()
79 switch (MI.getOpcode()) { in isALU()
93 switch (MI.getOpcode()) { in IsTrivialInst()
123 if (!TII->isALUInstr(MI.getOpcode()) && MI.getOpcode() != AMDGPU::DOT_4) in SubstituteKCacheBank()
129 (TII->isALUInstr(MI.getOpcode()) || MI.getOpcode() == AMDGPU::DOT_4) && in SubstituteKCacheBank()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp72 bool IsSecondShiftLeft = SecondShift->getOpcode() == Instruction::Shl; in canEvaluateShiftedShift()
153 switch (I->getOpcode()) { in CanEvaluateShifted()
205 switch (I->getOpcode()) { in GetShiftedValue()
324 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant()
339 if (I.getOpcode() != Instruction::AShr && in FoldShiftByConstant()
357 if (BO->getOpcode() == Instruction::Mul && isLeftShift) in FoldShiftByConstant()
383 Value *NSh = Builder->CreateBinOp(I.getOpcode(), TrOp, ShAmt,I.getName()); in FoldShiftByConstant()
397 if (I.getOpcode() == Instruction::Shl) in FoldShiftByConstant()
400 assert(I.getOpcode() == Instruction::LShr && "Unknown logical shift"); in FoldShiftByConstant()
419 switch (Op0BO->getOpcode()) { in FoldShiftByConstant()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCMIPeephole.cpp164 unsigned Opcode = MI->getOpcode(); in getKnownLeadingZeroCount()
313 switch (MI.getOpcode()) { in simplifyCode()
358 unsigned DefOpc = DefMI->getOpcode(); in simplifyCode()
371 if (LoadMI && LoadMI->getOpcode() == PPC::LXVDSX) in simplifyCode()
457 unsigned MyOpcode = MI.getOpcode(); in simplifyCode()
466 unsigned DefOpcode = DefMI->getOpcode(); in simplifyCode()
474 return Splt && (Splt->getOpcode() == PPC::LXVWSX || in simplifyCode()
475 Splt->getOpcode() == PPC::XXSPLTW); in simplifyCode()
530 if (DefMI && DefMI->getOpcode() == PPC::XXPERMDI) { in simplifyCode()
547 if (RoundInstr->getOpcode() == PPC::FRSP && in simplifyCode()
[all …]
/external/llvm/lib/Target/Sparc/
DDelaySlotFiller.cpp120 (MI->getOpcode() == SP::RESTORErr in runOnMachineBasicBlock()
121 || MI->getOpcode() == SP::RESTOREri)) { in runOnMachineBasicBlock()
129 (MI->getOpcode() == SP::FCMPS || MI->getOpcode() == SP::FCMPD in runOnMachineBasicBlock()
130 || MI->getOpcode() == SP::FCMPQ)) { in runOnMachineBasicBlock()
181 if (slot->getOpcode() == SP::RET || slot->getOpcode() == SP::TLS_CALL) in findDelayInstr()
184 if (slot->getOpcode() == SP::RETL) { in findDelayInstr()
188 if (J->getOpcode() == SP::RESTORErr in findDelayInstr()
189 || J->getOpcode() == SP::RESTOREri) { in findDelayInstr()
273 unsigned Opcode = candidate->getOpcode(); in delayHasHazard()
299 switch(MI->getOpcode()) { in insertCallDefsUses()
[all …]
/external/llvm-project/llvm/lib/Target/Sparc/
DDelaySlotFiller.cpp117 (MI->getOpcode() == SP::RESTORErr in runOnMachineBasicBlock()
118 || MI->getOpcode() == SP::RESTOREri)) { in runOnMachineBasicBlock()
126 (MI->getOpcode() == SP::FCMPS || MI->getOpcode() == SP::FCMPD in runOnMachineBasicBlock()
127 || MI->getOpcode() == SP::FCMPQ)) { in runOnMachineBasicBlock()
178 if (slot->getOpcode() == SP::RET || slot->getOpcode() == SP::TLS_CALL) in findDelayInstr()
181 if (slot->getOpcode() == SP::RETL) { in findDelayInstr()
185 if (J->getOpcode() == SP::RESTORErr in findDelayInstr()
186 || J->getOpcode() == SP::RESTOREri) { in findDelayInstr()
270 unsigned Opcode = candidate->getOpcode(); in delayHasHazard()
296 switch(MI->getOpcode()) { in insertCallDefsUses()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/
DDelaySlotFiller.cpp117 (MI->getOpcode() == SP::RESTORErr in runOnMachineBasicBlock()
118 || MI->getOpcode() == SP::RESTOREri)) { in runOnMachineBasicBlock()
126 (MI->getOpcode() == SP::FCMPS || MI->getOpcode() == SP::FCMPD in runOnMachineBasicBlock()
127 || MI->getOpcode() == SP::FCMPQ)) { in runOnMachineBasicBlock()
178 if (slot->getOpcode() == SP::RET || slot->getOpcode() == SP::TLS_CALL) in findDelayInstr()
181 if (slot->getOpcode() == SP::RETL) { in findDelayInstr()
185 if (J->getOpcode() == SP::RESTORErr in findDelayInstr()
186 || J->getOpcode() == SP::RESTOREri) { in findDelayInstr()
270 unsigned Opcode = candidate->getOpcode(); in delayHasHazard()
296 switch(MI->getOpcode()) { in insertCallDefsUses()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
DLanaiISelDAGToDAG.cpp113 if (Addr.getOpcode() == ISD::OR && in selectAddrSls()
114 Addr.getOperand(1).getOpcode() == LanaiISD::SMALL) { in selectAddrSls()
163 if ((Addr.getOpcode() == ISD::TargetExternalSymbol || in selectAddrRiSpls()
164 Addr.getOpcode() == ISD::TargetGlobalAddress)) in selectAddrRiSpls()
168 ISD::NodeType AluOperator = static_cast<ISD::NodeType>(Addr.getOpcode()); in selectAddrRiSpls()
192 Addr.getOperand(1).getOpcode() == LanaiISD::SMALL) in selectAddrRiSpls()
214 if (Addr.getOpcode() == ISD::FrameIndex) in selectAddrRr()
218 if ((Addr.getOpcode() == ISD::TargetExternalSymbol || in selectAddrRr()
219 Addr.getOpcode() == ISD::TargetGlobalAddress)) in selectAddrRr()
223 ISD::NodeType AluOperator = static_cast<ISD::NodeType>(Addr.getOpcode()); in selectAddrRr()
[all …]
/external/llvm-project/llvm/lib/Target/Lanai/
DLanaiISelDAGToDAG.cpp113 if (Addr.getOpcode() == ISD::OR && in selectAddrSls()
114 Addr.getOperand(1).getOpcode() == LanaiISD::SMALL) { in selectAddrSls()
163 if ((Addr.getOpcode() == ISD::TargetExternalSymbol || in selectAddrRiSpls()
164 Addr.getOpcode() == ISD::TargetGlobalAddress)) in selectAddrRiSpls()
168 ISD::NodeType AluOperator = static_cast<ISD::NodeType>(Addr.getOpcode()); in selectAddrRiSpls()
192 Addr.getOperand(1).getOpcode() == LanaiISD::SMALL) in selectAddrRiSpls()
214 if (Addr.getOpcode() == ISD::FrameIndex) in selectAddrRr()
218 if ((Addr.getOpcode() == ISD::TargetExternalSymbol || in selectAddrRr()
219 Addr.getOpcode() == ISD::TargetGlobalAddress)) in selectAddrRr()
223 ISD::NodeType AluOperator = static_cast<ISD::NodeType>(Addr.getOpcode()); in selectAddrRr()
[all …]

12345678910>>...92