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

/external/llvm/include/llvm/Transforms/Utils/
H A DLocal.h206 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/
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;
455 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); local
456 if (!OpC)
458 if (OpC->isZero())
463 unsigned ElementIdx = OpC->getZExtValue();
471 APInt Index = OpC
[all...]
/external/llvm/lib/Target/PowerPC/
H A DPPCRegisterInfo.cpp672 unsigned OpC = MI.getOpcode(); local
674 switch (OpC) {
724 unsigned OpC = MI.getOpcode(); local
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
907 unsigned OpC = MI->getOpcode(); local
[all...]
H A DPPCInstrInfo.cpp1108 unsigned OpC = MI->getOpcode(); local
1109 if (OpC == PPC::BLR) {
1131 } else if (OpC == PPC::B) {
1165 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 ||
1166 OpC == PPC::BCTRL || OpC == PPC::BCTRL8) {
1170 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8;
1267 unsigned OpC local
1316 int OpC = CmpInstr->getOpcode(); local
[all...]
H A DPPCISelDAGToDAG.cpp969 unsigned OpC = Hi ? PPC::LIS8 : PPC::LI8; local
970 Result = CurDAG->getMachineNode(OpC, dl, MVT::i64, getI32Imm(Hi));
/external/llvm/lib/Analysis/IPA/
H A DInlineCost.cpp250 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); local
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;
/external/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp52 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); local
53 if (!OpC)
55 if (OpC->isZero()) continue; // No offset.
59 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
66 Offset += Size*OpC->getSExtValue();
H A DSROA.cpp413 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); local
414 if (!OpC)
419 unsigned ElementIdx = OpC->getZExtValue();
425 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth());
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp35 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); local
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));
/external/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1327 if (SIToFPInst *OpC = dyn_cast<SIToFPInst>(Op)) {
1328 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() <= 32)
1329 LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty());
1330 } else if (UIToFPInst *OpC = dyn_cast<UIToFPInst>(Op)) {
1331 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() < 32)
1332 LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty());
/external/llvm/lib/Analysis/
H A DValueTracking.cpp939 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand()); local
940 unsigned ElementIdx = OpC->getZExtValue();
954 if (ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand())) {
955 if (!OpC->isZero())
H A DConstantFolding.cpp1183 unsigned OpC = local
1186 return ConstantFoldInstOperands(OpC, LHS->getType(), Ops, TD, TLI);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp356 static void AddNodeIDOpcode(FoldingSetNodeID &ID, unsigned OpC) { argument
357 ID.AddInteger(OpC);
400 static void AddNodeIDNode(FoldingSetNodeID &ID, unsigned short OpC, argument
402 AddNodeIDOpcode(ID, OpC);

Completed in 436 milliseconds