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

/macosx-10.10.1/llvmCore-3425.0.34/include/llvm/Transforms/Utils/
H A DLocal.h196 if (ConstantInt *OpC = dyn_cast<ConstantInt>(Op)) {
197 if (OpC->isZero()) continue;
201 Size = TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
210 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/);
/macosx-10.10.1/llvmCore-3425.0.34/include/llvm/
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;
/macosx-10.10.1/llvmCore-3425.0.34/lib/Target/PowerPC/
H A DPPCRegisterInfo.cpp546 unsigned OpC = MI.getOpcode(); local
550 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) {
557 if (OpC == PPC::SPILL_CR) {
560 } else if (OpC == PPC::RESTORE_CR) {
578 switch (OpC) {
608 if (OpC == PPC::DBG_VALUE || // DBG_VALUE is always Reg+Imm
640 if (OpC != TargetOpcode::INLINEASM) {
641 assert(ImmToIdxMap.count(OpC) &&
643 unsigned NewOpcode = ImmToIdxMap.find(OpC)
[all...]
H A DPPCISelDAGToDAG.cpp798 unsigned OpC = Hi ? PPC::LIS8 : PPC::LI8; local
799 Result = CurDAG->getMachineNode(OpC, dl, MVT::i64, getI32Imm(Hi));
/macosx-10.10.1/llvmCore-3425.0.34/lib/Transforms/IPO/
H A DGlobalDCE.cpp197 if (Constant *OpC = dyn_cast<Constant>(*I))
198 MarkUsedGlobalsAsNeeded(OpC);
/macosx-10.10.1/llvmCore-3425.0.34/lib/Analysis/
H A DInlineCost.cpp251 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); local
252 if (!OpC)
254 OpC = dyn_cast<ConstantInt>(SimpleOp);
255 if (!OpC)
257 if (OpC->isZero()) continue;
261 unsigned ElementIdx = OpC->getZExtValue();
268 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize;
H A DValueTracking.cpp1601 ConstantInt *OpC = cast<ConstantInt>(*I); local
1602 if (OpC->isZero()) continue;
1606 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
1609 Offset += OpC->getSExtValue()*Size;
H A DInstructionSimplify.cpp675 ConstantInt *OpC = dyn_cast<ConstantInt>(*I); local
676 if (!OpC) return false;
677 if (OpC->isZero()) continue;
681 unsigned ElementIdx = OpC->getZExtValue();
688 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize;
H A DConstantFolding.cpp1044 unsigned OpC = local
1047 return ConstantFoldInstOperands(OpC, LHS->getType(), Ops, TD, TLI);
/macosx-10.10.1/llvmCore-3425.0.34/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();
H A DSROA.cpp418 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); local
419 if (!OpC)
421 if (OpC->isZero())
426 unsigned ElementIdx = OpC->getZExtValue();
445 APInt Index = OpC->getValue().sextOrTrunc(TD.getPointerSizeInBits());
1358 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); local
1359 if (!OpC)
1361 if (OpC->isZero()) continue;
1365 unsigned ElementIdx = OpC->getZExtValue();
1380 GEPOffset += OpC
[all...]
H A DSimplifyLibCalls.cpp1047 if (SIToFPInst *OpC = dyn_cast<SIToFPInst>(Op)) {
1048 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() <= 32)
1049 LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty());
1050 } else if (UIToFPInst *OpC = dyn_cast<UIToFPInst>(Op)) {
1051 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() < 32)
1052 LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty());
/macosx-10.10.1/llvmCore-3425.0.34/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp33 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); local
34 if (!OpC) return false;
37 Demanded = Demanded.zextOrTrunc(OpC->getValue().getBitWidth());
38 if ((~Demanded & OpC->getValue()) == 0)
42 Demanded &= OpC->getValue();
43 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded));
/macosx-10.10.1/llvmCore-3425.0.34/lib/Target/X86/
H A DX86FastISel.cpp1495 unsigned OpC = 0; local
1497 OpC = X86::ADD32rr;
1499 OpC = X86::ADD64rr;
1506 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(OpC), ResultReg)
/macosx-10.10.1/llvmCore-3425.0.34/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp341 static void AddNodeIDOpcode(FoldingSetNodeID &ID, unsigned OpC) { argument
342 ID.AddInteger(OpC);
372 unsigned short OpC, SDVTList VTList,
374 AddNodeIDOpcode(ID, OpC);
371 AddNodeIDNode(FoldingSetNodeID &ID, unsigned short OpC, SDVTList VTList, const SDValue *OpList, unsigned N) argument

Completed in 279 milliseconds