/external/llvm/include/llvm/Transforms/Utils/ |
Local.h | 206 if (Constant *OpC = dyn_cast<Constant>(Op)) { 207 if (OpC->isZeroValue()) 212 if (OpC->getType()->isVectorTy()) 213 OpC = OpC->getSplatValue(); 215 uint64_t OpValue = cast<ConstantInt>(OpC)->getZExtValue(); 225 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/);
|
/external/llvm/include/llvm/IR/ |
Operator.h | 151 static bool isPossiblyExactOpcode(unsigned OpC) { 152 return OpC == Instruction::SDiv || 153 OpC == Instruction::UDiv || 154 OpC == Instruction::AShr || 155 OpC == Instruction::LShr; 317 template<typename SuperClass, unsigned Opc> 321 return I->getOpcode() == Opc; 324 return CE->getOpcode() == Opc; 455 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); 456 if (!OpC) [all...] |
/external/llvm/lib/Target/PowerPC/ |
PPCRegisterInfo.cpp | 672 unsigned OpC = MI.getOpcode(); 674 switch (OpC) { 724 unsigned OpC = MI.getOpcode(); 728 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) { 734 if (OpC == PPC::SPILL_CR) { 737 } else if (OpC == PPC::RESTORE_CR) { 740 } else if (OpC == PPC::SPILL_CRBIT) { 743 } else if (OpC == PPC::RESTORE_CRBIT) { 746 } else if (OpC == PPC::SPILL_VRSAVE) [all...] |
PPCInstrInfo.cpp | 734 unsigned Opc; 736 Opc = PPC::OR; 738 Opc = PPC::OR8; 740 Opc = PPC::FMR; 742 Opc = PPC::MCRF; 744 Opc = PPC::VOR; 754 Opc = PPC::XXLOR; 756 Opc = PPC::XXLORf; 758 Opc = PPC::CROR; 762 const MCInstrDesc &MCID = get(Opc); [all...] |
PPCISelDAGToDAG.cpp | 341 static bool isOpcWithIntImmediate(SDNode *N, unsigned Opc, unsigned& Imm) { 342 return N->getOpcode() == Opc 495 unsigned Opc; 524 Opc = PPC::CMPLW; 529 Opc = PPC::CMPLW; 536 Opc = PPC::CMPW; 567 Opc = PPC::CMPLD; 572 Opc = PPC::CMPLD; 579 Opc = PPC::CMPD; 582 Opc = PPC::FCMPUS [all...] |
/external/llvm/lib/Analysis/IPA/ |
InlineCost.cpp | 250 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); 251 if (!OpC) 253 OpC = dyn_cast<ConstantInt>(SimpleOp); 254 if (!OpC) 256 if (OpC->isZero()) continue; 260 unsigned ElementIdx = OpC->getZExtValue(); 267 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; [all...] |
/external/llvm/lib/Transforms/Scalar/ |
MemCpyOptimizer.cpp | 52 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); 53 if (!OpC) 55 if (OpC->isZero()) continue; // No offset. 59 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); 66 Offset += Size*OpC->getSExtValue(); [all...] |
SROA.cpp | 413 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); 414 if (!OpC) 419 unsigned ElementIdx = OpC->getZExtValue(); 425 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineSimplifyDemanded.cpp | 35 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); 36 if (!OpC) return false; 39 Demanded = Demanded.zextOrTrunc(OpC->getValue().getBitWidth()); 40 if ((~Demanded & OpC->getValue()) == 0) 44 Demanded &= OpC->getValue(); 45 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); [all...] |
/external/llvm/lib/Transforms/Utils/ |
SimplifyLibCalls.cpp | [all...] |
/external/llvm/lib/Analysis/ |
ValueTracking.cpp | [all...] |
ConstantFolding.cpp | 616 static Constant *SymbolicallyEvaluateBinop(unsigned Opc, Constant *Op0, 625 if (Opc == Instruction::And && DL) { 649 if (Opc == Instruction::Sub && DL) { [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
SelectionDAG.cpp | 356 static void AddNodeIDOpcode(FoldingSetNodeID &ID, unsigned OpC) { 357 ID.AddInteger(OpC); 400 static void AddNodeIDNode(FoldingSetNodeID &ID, unsigned short OpC, 402 AddNodeIDOpcode(ID, OpC); [all...] |