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

/freebsd-9.3-release/contrib/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*/);
/freebsd-9.3-release/contrib/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...]
/freebsd-9.3-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCRegisterInfo.cpp530 unsigned OpC = MI.getOpcode(); local
532 switch (OpC) {
582 unsigned OpC = MI.getOpcode(); local
586 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) {
592 if (OpC == PPC::SPILL_CR) {
595 } else if (OpC == PPC::RESTORE_CR) {
598 } else if (OpC == PPC::SPILL_VRSAVE) {
601 } else if (OpC == PPC::RESTORE_VRSAVE) {
615 bool noImmForm = !MI.isInlineAsm() && !ImmToIdxMap.count(OpC);
759 unsigned OpC = MI->getOpcode(); local
[all...]
H A DPPCInstrInfo.cpp933 unsigned OpC = MI->getOpcode(); local
934 if (OpC == PPC::BLR) {
948 } else if (OpC == PPC::B) {
966 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 ||
967 OpC == PPC::BCTRL || OpC == PPC::BCTRL8) {
971 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8;
1053 unsigned OpC local
1102 int OpC = CmpInstr->getOpcode(); local
[all...]
H A DPPCISelDAGToDAG.cpp926 unsigned OpC = Hi ? PPC::LIS8 : PPC::LI8; local
927 Result = CurDAG->getMachineNode(OpC, dl, MVT::i64, getI32Imm(Hi));
/freebsd-9.3-release/contrib/llvm/lib/Analysis/IPA/
H A DInlineCost.cpp267 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); local
268 if (!OpC)
270 OpC = dyn_cast<ConstantInt>(SimpleOp);
271 if (!OpC)
273 if (OpC->isZero()) continue;
277 unsigned ElementIdx = OpC->getZExtValue();
284 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize;
/freebsd-9.3-release/contrib/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();
/freebsd-9.3-release/contrib/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));
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1226 if (SIToFPInst *OpC = dyn_cast<SIToFPInst>(Op)) {
1227 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() <= 32)
1228 LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty());
1229 } else if (UIToFPInst *OpC = dyn_cast<UIToFPInst>(Op)) {
1230 if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() < 32)
1231 LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty());
/freebsd-9.3-release/contrib/llvm/lib/Analysis/
H A DValueTracking.cpp940 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand()); local
941 unsigned ElementIdx = OpC->getZExtValue();
955 if (ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand())) {
956 if (!OpC->isZero())
H A DConstantFolding.cpp1128 unsigned OpC = local
1131 return ConstantFoldInstOperands(OpC, LHS->getType(), Ops, TD, TLI);
/freebsd-9.3-release/contrib/llvm/lib/Target/X86/
H A DX86FastISel.cpp1745 unsigned OpC = 0; local
1747 OpC = X86::ADD32rr;
1749 OpC = X86::ADD64rr;
1756 BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(OpC), ResultReg)
/freebsd-9.3-release/contrib/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 278 milliseconds