Searched refs:OpC (Results 1 - 13 of 13) sorted by relevance

/external/llvm/include/llvm/IR/
H A DOperator.h151 static bool isPossiblyExactOpcode(unsigned OpC) { argument
152 return OpC == Instruction::SDiv ||
153 OpC == Instruction::UDiv ||
154 OpC == Instruction::AShr ||
155 OpC == Instruction::LShr;
451 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); local
452 if (!OpC)
454 if (OpC->isZero())
459 unsigned ElementIdx = OpC->getZExtValue();
467 APInt Index = OpC
[all...]
/external/llvm/include/llvm/Transforms/Utils/
H A DLocal.h206 if (ConstantInt *OpC = dyn_cast<ConstantInt>(Op)) {
207 if (OpC->isZero()) continue;
211 Size = TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
220 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/);
/external/llvm/lib/Target/PowerPC/
H A DPPCRegisterInfo.cpp529 unsigned OpC = MI.getOpcode(); local
531 switch (OpC) {
580 unsigned OpC = MI.getOpcode(); local
584 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) {
590 if (OpC == PPC::SPILL_CR) {
593 } else if (OpC == PPC::RESTORE_CR) {
596 } else if (OpC == PPC::SPILL_VRSAVE) {
599 } else if (OpC == PPC::RESTORE_VRSAVE) {
613 bool noImmForm = !MI.isInlineAsm() && !ImmToIdxMap.count(OpC);
765 unsigned OpC = MI->getOpcode(); local
[all...]
H A DPPCInstrInfo.cpp926 unsigned OpC = MI->getOpcode(); local
927 if (OpC == PPC::BLR) {
941 } else if (OpC == PPC::B) {
959 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 ||
960 OpC == PPC::BCTRL || OpC == PPC::BCTRL8) {
964 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8;
1042 unsigned OpC local
1091 int OpC = CmpInstr->getOpcode(); local
[all...]
H A DPPCISelDAGToDAG.cpp924 unsigned OpC = Hi ? PPC::LIS8 : PPC::LI8; local
925 Result = CurDAG->getMachineNode(OpC, dl, MVT::i64, getI32Imm(Hi));
/external/llvm/lib/Analysis/IPA/
H A DInlineCost.cpp258 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); local
259 if (!OpC)
261 OpC = dyn_cast<ConstantInt>(SimpleOp);
262 if (!OpC)
264 if (OpC->isZero()) continue;
268 unsigned ElementIdx = OpC->getZExtValue();
275 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize;
/external/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp51 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); local
52 if (OpC == 0)
54 if (OpC->isZero()) continue; // No offset.
58 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
65 Offset += Size*OpC->getSExtValue();
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp34 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); local
35 if (!OpC) return false;
38 Demanded = Demanded.zextOrTrunc(OpC->getValue().getBitWidth());
39 if ((~Demanded & OpC->getValue()) == 0)
43 Demanded &= OpC->getValue();
44 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded));
/external/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1197 if (SIToFPInst *OpC = dyn_cast<SIToFPInst>(Op)) {
1198 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() <= 32)
1199 LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty());
1200 } else if (UIToFPInst *OpC = dyn_cast<UIToFPInst>(Op)) {
1201 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() < 32)
1202 LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty());
/external/llvm/lib/Analysis/
H A DValueTracking.cpp930 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand()); local
931 unsigned ElementIdx = OpC->getZExtValue();
945 if (ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand())) {
946 if (!OpC->isZero())
H A DConstantFolding.cpp1081 unsigned OpC = local
1084 return ConstantFoldInstOperands(OpC, LHS->getType(), Ops, TD, TLI);
/external/llvm/lib/Target/X86/
H A DX86FastISel.cpp1696 unsigned OpC = 0; local
1698 OpC = X86::ADD32rr;
1700 OpC = X86::ADD64rr;
1707 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(OpC), ResultReg)
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp325 static void AddNodeIDOpcode(FoldingSetNodeID &ID, unsigned OpC) { argument
326 ID.AddInteger(OpC);
356 unsigned short OpC, SDVTList VTList,
358 AddNodeIDOpcode(ID, OpC);
355 AddNodeIDNode(FoldingSetNodeID &ID, unsigned short OpC, SDVTList VTList, const SDValue *OpList, unsigned N) argument

Completed in 1064 milliseconds