Home
last modified time | relevance | path

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

12345678910>>...59

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/tools/llvm-exegesis/X86/
DTargetTest.cpp49 EXPECT_EQ(Insts[0].getOpcode(), llvm::X86::MOV32ri); in TEST_F()
58 EXPECT_EQ(Insts[0].getOpcode(), llvm::X86::SUB64ri8); in TEST_F()
59 EXPECT_EQ(Insts[1].getOpcode(), llvm::X86::MOV32mi); in TEST_F()
60 EXPECT_EQ(Insts[2].getOpcode(), llvm::X86::MOV32mi); in TEST_F()
61 EXPECT_EQ(Insts[3].getOpcode(), llvm::X86::MOV32mi); in TEST_F()
62 EXPECT_EQ(Insts[4].getOpcode(), llvm::X86::MOV32mi); in TEST_F()
63 EXPECT_EQ(Insts[5].getOpcode(), llvm::X86::MOVDQUrm); in TEST_F()
64 EXPECT_EQ(Insts[6].getOpcode(), llvm::X86::ADD64ri8); in TEST_F()
72 EXPECT_EQ(Insts[0].getOpcode(), llvm::X86::SUB64ri8); in TEST_F()
73 EXPECT_EQ(Insts[1].getOpcode(), llvm::X86::MOV32mi); in TEST_F()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DOperator.h42 unsigned getOpcode() const { in getOpcode() function
44 return I->getOpcode(); in getOpcode()
45 return cast<ConstantExpr>(this)->getOpcode(); in getOpcode()
51 static unsigned getOpcode(const Value *V) { in getOpcode() function
53 return I->getOpcode(); in getOpcode()
55 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/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/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DInstructionWriter.java108 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
117 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
126 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
135 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
144 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
153 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
163 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
173 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
183 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
193 writer.write(getOpcodeValue(instruction.getOpcode())); in write()
[all …]
/external/swiftshader/third_party/llvm-7.0/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/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/include/llvm/CodeGen/
DSelectionDAGNodes.h136 inline unsigned getOpcode() const;
358 unsigned getOpcode() const { return (unsigned short)NodeType; }
769 inline unsigned SDValue::getOpcode() const {
770 return Node->getOpcode();
956 return getOperand(getOpcode() == ISD::STORE ? 2 : 1);
964 return N->getOpcode() == ISD::LOAD ||
965 N->getOpcode() == ISD::STORE ||
966 N->getOpcode() == ISD::PREFETCH ||
967 N->getOpcode() == ISD::ATOMIC_CMP_SWAP ||
968 N->getOpcode() == ISD::ATOMIC_SWAP ||
[all …]
DMachineInstr.h195 int getOpcode() const { return MCID->Opcode; }
258 return getOpcode() == TargetOpcode::PROLOG_LABEL ||
259 getOpcode() == TargetOpcode::EH_LABEL ||
260 getOpcode() == TargetOpcode::GC_LABEL;
264 return getOpcode() == TargetOpcode::PROLOG_LABEL;
266 bool isEHLabel() const { return getOpcode() == TargetOpcode::EH_LABEL; }
267 bool isGCLabel() const { return getOpcode() == TargetOpcode::GC_LABEL; }
268 bool isDebugValue() const { return getOpcode() == TargetOpcode::DBG_VALUE; }
270 bool isPHI() const { return getOpcode() == TargetOpcode::PHI; }
271 bool isKill() const { return getOpcode() == TargetOpcode::KILL; }
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h183 inline unsigned getOpcode() const;
625 unsigned getOpcode() const { return (unsigned short)NodeType; }
863 if (TopologicalPrune && M->getOpcode() != ISD::TokenFactor && (NId > 0) &&
1105 inline unsigned SDValue::getOpcode() const {
1106 return Node->getOpcode();
1233 return N->getOpcode() == ISD::ADDRSPACECAST;
1329 return getOperand(getOpcode() == ISD::STORE ? 2 : 1);
1336 return N->getOpcode() == ISD::LOAD ||
1337 N->getOpcode() == ISD::STORE ||
1338 N->getOpcode() == ISD::PREFETCH ||
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyUtilities.cpp29 switch (MI.getOpcode()) { in isArgument()
45 switch (MI.getOpcode()) { in isCopy()
57 switch (MI.getOpcode()) { in isTee()
82 switch (MI.getOpcode()) { in isCallDirect()
100 switch (MI.getOpcode()) { in isCallIndirect()
118 switch (MI.getOpcode()) { in getCalleeOpNo()
139 switch (MI.getOpcode()) { in isMarker()
153 switch (MI.getOpcode()) { in isThrow()
163 switch (MI.getOpcode()) { in isRethrow()
173 switch (MI.getOpcode()) { in isCatch()
[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/swiftshader/third_party/LLVM/lib/Target/Sparc/
DSparcISelDAGToDAG.cpp80 if (Addr.getOpcode() == ISD::TargetExternalSymbol || in SelectADDRri()
81 Addr.getOpcode() == ISD::TargetGlobalAddress) in SelectADDRri()
84 if (Addr.getOpcode() == ISD::ADD) { in SelectADDRri()
98 if (Addr.getOperand(0).getOpcode() == SPISD::Lo) { in SelectADDRri()
103 if (Addr.getOperand(1).getOpcode() == SPISD::Lo) { in SelectADDRri()
115 if (Addr.getOpcode() == ISD::FrameIndex) return false; in SelectADDRrr()
116 if (Addr.getOpcode() == ISD::TargetExternalSymbol || in SelectADDRrr()
117 Addr.getOpcode() == ISD::TargetGlobalAddress) in SelectADDRrr()
120 if (Addr.getOpcode() == ISD::ADD) { in SelectADDRrr()
124 if (Addr.getOperand(0).getOpcode() == SPISD::Lo || in SelectADDRrr()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp371 if (Op.getOpcode() == ISD::FNEG) return 2; in isNegatibleForFree()
379 switch (Op.getOpcode()) { in isNegatibleForFree()
423 if (Op.getOpcode() == ISD::FNEG) return Op.getOperand(0); in GetNegatedExpression()
429 switch (Op.getOpcode()) { in GetNegatedExpression()
470 return DAG.getNode(Op.getOpcode(), Op.getDebugLoc(), Op.getValueType(), in GetNegatedExpression()
476 return DAG.getNode(Op.getOpcode(), Op.getDebugLoc(), Op.getValueType(), in GetNegatedExpression()
483 return DAG.getNode(Op.getOpcode(), Op.getDebugLoc(), Op.getValueType(), in GetNegatedExpression()
502 if (N.getOpcode() == ISD::SETCC) { in isSetCCEquivalent()
508 if (N.getOpcode() == ISD::SELECT_CC && in isSetCCEquivalent()
509 N.getOperand(2).getOpcode() == ISD::Constant && in isSetCCEquivalent()
[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/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/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineShifts.cpp106 switch (I->getOpcode()) { in CanEvaluateShifted()
200 switch (I->getOpcode()) { in GetShiftedValue()
313 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant()
318 if (I.getOpcode() != Instruction::AShr && in FoldShiftByConstant()
336 if (I.getOpcode() != Instruction::AShr) in FoldShiftByConstant()
345 if (BO->getOpcode() == Instruction::Mul && isLeftShift) in FoldShiftByConstant()
371 Value *NSh = Builder->CreateBinOp(I.getOpcode(), TrOp, ShAmt,I.getName()); in FoldShiftByConstant()
385 if (I.getOpcode() == Instruction::Shl) in FoldShiftByConstant()
388 assert(I.getOpcode() == Instruction::LShr && "Unknown logical shift"); in FoldShiftByConstant()
407 switch (Op0BO->getOpcode()) { in FoldShiftByConstant()
[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/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/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/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DOperator.h41 unsigned getOpcode() const { in getOpcode() function
43 return I->getOpcode(); in getOpcode()
44 return cast<ConstantExpr>(this)->getOpcode(); in getOpcode()
49 static unsigned getOpcode(const Value *V) { in getOpcode() function
51 return I->getOpcode(); in getOpcode()
53 return CE->getOpcode(); in getOpcode()
101 return I->getOpcode() == Instruction::Add || in classof()
102 I->getOpcode() == Instruction::Sub || in classof()
103 I->getOpcode() == Instruction::Mul || in classof()
104 I->getOpcode() == Instruction::Shl; in classof()
[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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
DDelaySlotFiller.cpp118 (MI->getOpcode() == SP::RESTORErr in runOnMachineBasicBlock()
119 || MI->getOpcode() == SP::RESTOREri)) { in runOnMachineBasicBlock()
127 (MI->getOpcode() == SP::FCMPS || MI->getOpcode() == SP::FCMPD in runOnMachineBasicBlock()
128 || MI->getOpcode() == SP::FCMPQ)) { in runOnMachineBasicBlock()
179 if (slot->getOpcode() == SP::RET || slot->getOpcode() == SP::TLS_CALL) in findDelayInstr()
182 if (slot->getOpcode() == SP::RETL) { in findDelayInstr()
186 if (J->getOpcode() == SP::RESTORErr in findDelayInstr()
187 || J->getOpcode() == SP::RESTOREri) { in findDelayInstr()
271 unsigned Opcode = candidate->getOpcode(); in delayHasHazard()
297 switch(MI->getOpcode()) { in insertCallDefsUses()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCBranchSelector.cpp164 if (I->getOpcode() == PPC::BCC && !I->getOperand(2).isImm()) in runOnMachineFunction()
166 else if ((I->getOpcode() == PPC::BC || I->getOpcode() == PPC::BCn) && in runOnMachineFunction()
169 else if ((I->getOpcode() == PPC::BDNZ8 || I->getOpcode() == PPC::BDNZ || in runOnMachineFunction()
170 I->getOpcode() == PPC::BDZ8 || I->getOpcode() == PPC::BDZ) && in runOnMachineFunction()
209 if (I->getOpcode() == PPC::BCC) { in runOnMachineFunction()
220 } else if (I->getOpcode() == PPC::BC) { in runOnMachineFunction()
223 } else if (I->getOpcode() == PPC::BCn) { in runOnMachineFunction()
226 } else if (I->getOpcode() == PPC::BDNZ) { in runOnMachineFunction()
228 } else if (I->getOpcode() == PPC::BDNZ8) { in runOnMachineFunction()
230 } else if (I->getOpcode() == PPC::BDZ) { in runOnMachineFunction()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DMutableMethodImplementation.java86 final Opcode opcode = instruction.getOpcode(); in MutableMethodImplementation()
350 if (instruction.getOpcode() != Opcode.NOP) {
363 switch (instruction.getOpcode()) {
374 if (targetInstruction.getOpcode() == Opcode.NOP) {
383 targetInstruction.getOpcode() != Opcode.PACKED_SWITCH_PAYLOAD) ||
385 targetInstruction.getOpcode() != Opcode.SPARSE_SWITCH_PAYLOAD)) {
411 switch (instruction.getOpcode()) {
454 if (previousInstruction.getOpcode() == Opcode.NOP) {
555 switch (instruction.getOpcode().format) {
672 …ow new ExceptionWithContext("Instruction format %s not supported", instruction.getOpcode().format);
[all …]

12345678910>>...59