| /openbsd/src/gnu/llvm/llvm/lib/Analysis/ |
| D | Local.cpp | 43 if (Constant *OpC = dyn_cast<Constant>(Op)) { in emitGEPOffset() local 44 if (OpC->isZeroValue()) in emitGEPOffset() 49 uint64_t OpValue = OpC->getUniqueInteger().getZExtValue(); in emitGEPOffset() 57 if (IntIdxTy->isVectorTy() && !OpC->getType()->isVectorTy()) in emitGEPOffset() 58 OpC = ConstantVector::getSplat( in emitGEPOffset() 59 cast<VectorType>(IntIdxTy)->getElementCount(), OpC); in emitGEPOffset() 63 ConstantExpr::getIntegerCast(OpC, IntIdxTy, true /*SExt*/); in emitGEPOffset()
|
| D | ConstantFolding.cpp | 1292 unsigned OpC = in ConstantFoldCompareInstOperands() local 1294 return ConstantFoldBinaryOpOperands(OpC, LHS, RHS, DL); in ConstantFoldCompareInstOperands() 3321 if (ConstantFP *OpC = dyn_cast<ConstantFP>(Call->getArgOperand(0))) { in isMathLibCallNoop() local 3322 const APFloat &Op = OpC->getValueAPF(); in isMathLibCallNoop() 3339 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop() 3341 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop() 3349 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop() 3351 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop() 3368 Type *Ty = OpC->getType(); in isMathLibCallNoop() 3370 return ConstantFoldFP(tan, OpC->getValueAPF(), Ty) != nullptr; in isMathLibCallNoop() [all …]
|
| D | InlineCost.cpp | 1341 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset() local 1342 if (!OpC) in accumulateGEPOffset() 1344 OpC = dyn_cast<ConstantInt>(SimpleOp); in accumulateGEPOffset() 1345 if (!OpC) in accumulateGEPOffset() 1347 if (OpC->isZero()) in accumulateGEPOffset() 1352 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() 1359 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
|
| D | CGSCCPassManager.cpp | 937 if (auto *OpC = dyn_cast<Constant>(Op)) in updateCGAndAnalysisManagerForPass() local 938 if (Visited.insert(OpC).second) in updateCGAndAnalysisManagerForPass() 939 Worklist.push_back(OpC); in updateCGAndAnalysisManagerForPass()
|
| D | ScalarEvolution.cpp | 7779 if (auto *OpC = dyn_cast<SCEVConstant>(LHSMul->getOperand(0))) { in createSCEV() local 7781 unsigned MulZeros = OpC->getAPInt().countTrailingZeros(); in createSCEV() 7785 MulOps.push_back(getConstant(OpC->getAPInt().lshr(GCD))); in createSCEV() 9331 Instruction::BinaryOps OpC; in computeShiftCompareExitLimit() local 9343 if (MatchPositiveShift(LHS, V, OpC)) { in computeShiftCompareExitLimit() 9344 PostShiftOpCode = OpC; in computeShiftCompareExitLimit() 9799 Constant *OpC = BuildConstantFromSCEV(Op); in BuildConstantFromSCEV() local 9800 if (!OpC) in BuildConstantFromSCEV() 9803 C = OpC; in BuildConstantFromSCEV() 9808 if (auto *PT = dyn_cast<PointerType>(OpC->getType())) { in BuildConstantFromSCEV() [all …]
|
| D | ValueTracking.cpp | 2266 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand()); in isGEPKnownNonNull() local 2267 unsigned ElementIdx = OpC->getZExtValue(); in isGEPKnownNonNull() 2281 if (ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand())) { in isGEPKnownNonNull() local 2282 if (!OpC->isZero()) in isGEPKnownNonNull() 7476 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in getOffsetFromIndex() local 7477 if (!OpC) in getOffsetFromIndex() 7479 if (OpC->isZero()) in getOffsetFromIndex() 7484 Offset += DL.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in getOffsetFromIndex() 7493 Offset += Size.getFixedValue() * OpC->getSExtValue(); in getOffsetFromIndex()
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| D | Annotation2Metadata.cpp | 47 auto *OpC = dyn_cast<ConstantStruct>(&Op); in convertAnnotation2Metadata() local 48 if (!OpC || OpC->getNumOperands() != 4) in convertAnnotation2Metadata() 50 auto *StrC = dyn_cast<GlobalValue>(OpC->getOperand(1)->stripPointerCasts()); in convertAnnotation2Metadata() 56 auto *Fn = dyn_cast<Function>(OpC->getOperand(0)->stripPointerCasts()); in convertAnnotation2Metadata()
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/PowerPC/ |
| D | PPCRegisterInfo.cpp | 96 static unsigned offsetMinAlignForOpcode(unsigned OpC); 1527 static unsigned offsetMinAlignForOpcode(unsigned OpC) { in offsetMinAlignForOpcode() argument 1528 switch (OpC) { in offsetMinAlignForOpcode() 1561 unsigned OpC = MI.getOpcode(); in offsetMinAlign() local 1562 return offsetMinAlignForOpcode(OpC); in offsetMinAlign() 1608 unsigned OpC = MI.getOpcode(); in eliminateFrameIndex() local 1610 if ((OpC == PPC::DYNAREAOFFSET || OpC == PPC::DYNAREAOFFSET8)) { in eliminateFrameIndex() 1618 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) { in eliminateFrameIndex() 1625 (OpC == PPC::PREPARE_PROBED_ALLOCA_64 || in eliminateFrameIndex() 1626 OpC == PPC::PREPARE_PROBED_ALLOCA_32 || in eliminateFrameIndex() [all …]
|
| D | PPCInstrInfo.cpp | 804 MachineOperand &OpC = Root.getOperand(0); in reassociateFMA() local 805 Register RegC = OpC.getReg(); in reassociateFMA() 2188 unsigned OpC = MI.getOpcode(); in PredicateInstruction() local 2189 if (OpC == PPC::BLR || OpC == PPC::BLR8) { in PredicateInstruction() 2212 } else if (OpC == PPC::B) { in PredicateInstruction() 2249 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 || OpC == PPC::BCTRL || in PredicateInstruction() 2250 OpC == PPC::BCTRL8 || OpC == PPC::BCTRL_RM || in PredicateInstruction() 2251 OpC == PPC::BCTRL8_RM) { in PredicateInstruction() 2255 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8 || in PredicateInstruction() 2256 OpC == PPC::BCTRL_RM || OpC == PPC::BCTRL8_RM; in PredicateInstruction() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/ |
| D | SimpleRemoteEPC.cpp | 119 SimpleRemoteEPC::handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in handleMessage() argument 125 switch (OpC) { in handleMessage() 151 if (static_cast<UT>(OpC) > static_cast<UT>(SimpleRemoteEPCOpcode::LastOpC)) in handleMessage() 155 switch (OpC) { in handleMessage() 218 Error SimpleRemoteEPC::sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in sendMessage() argument 221 assert(OpC != SimpleRemoteEPCOpcode::Setup && in sendMessage() 226 switch (OpC) { in sendMessage() 247 auto Err = T->sendMessage(OpC, SeqNo, TagAddr, ArgBytes); in sendMessage()
|
| /openbsd/src/gnu/llvm/llvm/lib/IR/ |
| D | Operator.cpp | 74 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in getMaxPreservedAlignment() local 78 Offset = SL->getElementOffset(OpC->getZExtValue()); in getMaxPreservedAlignment() 83 const uint64_t ElemCount = OpC ? OpC->getZExtValue() : 1; in getMaxPreservedAlignment()
|
| D | Constants.cpp | 1668 Constant *OpC = getOperand(I); in getSplatValue() local 1669 if (OpC == Elt) in getSplatValue() 1677 if (isa<UndefValue>(OpC)) in getSplatValue() 1682 Elt = OpC; in getSplatValue() 1684 if (OpC != Elt) in getSplatValue()
|
| D | Verifier.cpp | 2224 const auto *OpC = dyn_cast<Constant>(U); in visitConstantExprsRecursively() local 2225 if (!OpC) in visitConstantExprsRecursively() 2227 if (!ConstantExprVisited.insert(OpC).second) in visitConstantExprsRecursively() 2229 Stack.push_back(OpC); in visitConstantExprsRecursively()
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/IR/ |
| D | Operator.h | 149 static bool isPossiblyExactOpcode(unsigned OpC) { in isPossiblyExactOpcode() argument 150 return OpC == Instruction::SDiv || in isPossiblyExactOpcode() 151 OpC == Instruction::UDiv || in isPossiblyExactOpcode() 152 OpC == Instruction::AShr || in isPossiblyExactOpcode() 153 OpC == Instruction::LShr; in isPossiblyExactOpcode()
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/ |
| D | SimpleRemoteEPC.h | 91 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr, 106 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| D | AMDGPUAttributor.cpp | 193 const auto *OpC = dyn_cast<Constant>(U); in getConstantAccess() local 194 if (!OpC) in getConstantAccess() 197 Result |= getConstantAccess(OpC); in getConstantAccess()
|
| D | AMDGPUInstructionSelector.cpp | 560 const unsigned OpC = IsFMA ? AMDGPU::V_FMA_MIX_F32 : AMDGPU::V_MAD_MIX_F32; in selectG_FMA_FMAD() local 562 BuildMI(*I.getParent(), I, I.getDebugLoc(), TII.get(OpC), Dst) in selectG_FMA_FMAD()
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/Hexagon/ |
| D | HexagonStoreWidening.cpp | 129 unsigned OpC = MI->getOpcode(); in getStoreOffset() local 132 switch (OpC) { in getStoreOffset()
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/ |
| D | TargetInstrInfo.cpp | 956 MachineOperand &OpC = Root.getOperand(0); in reassociateOps() local 962 Register RegC = OpC.getReg(); in reassociateOps()
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| D | SCCPSolver.cpp | 1089 if (Constant *OpC = getConstant(OpSt)) { in visitCastInst() local 1091 Constant *C = ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL); in visitCastInst()
|
| D | SimplifyLibCalls.cpp | 2497 auto *OpC = dyn_cast<CallInst>(Op1); in optimizeTan() local 2498 if (!OpC) in optimizeTan() 2502 if (!CI->isFast() || !OpC->isFast()) in optimizeTan() 2509 Function *F = OpC->getCalledFunction(); in optimizeTan() 2515 Ret = OpC->getArgOperand(0); in optimizeTan()
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| D | SROA.cpp | 842 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in visitGetElementPtrInst() local 843 if (!OpC) in visitGetElementPtrInst() 848 unsigned ElementIdx = OpC->getZExtValue(); in visitGetElementPtrInst() 855 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in visitGetElementPtrInst()
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| D | InstCombineAndOrXor.cpp | 1898 Instruction::BinaryOps OpC = I.getOpcode(); in canonicalizeLogicFirst() local 1911 switch (OpC) { in canonicalizeLogicFirst() 1925 Value *NewBinOp = Builder.CreateBinOp(OpC, X, ConstantInt::get(Ty, *C)); in canonicalizeLogicFirst()
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/AArch64/ |
| D | AArch64TargetTransformInfo.cpp | 838 auto OpC = OldBinOp->getOpcode(); in instCombineSVELast() local 844 OpC, NewLHS, NewRHS, OldBinOp, OldBinOp->getName(), &II); in instCombineSVELast()
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| D | SelectionDAG.cpp | 636 static void AddNodeIDOpcode(FoldingSetNodeID &ID, unsigned OpC) { in AddNodeIDOpcode() argument 637 ID.AddInteger(OpC); in AddNodeIDOpcode() 664 static void AddNodeIDNode(FoldingSetNodeID &ID, unsigned OpC, in AddNodeIDNode() argument 666 AddNodeIDOpcode(ID, OpC); in AddNodeIDNode()
|