| /llvm-project-15.0.7/llvm/include/llvm/Analysis/Utils/ |
| H A D | Local.h | 50 if (Constant *OpC = dyn_cast<Constant>(Op)) { variable 51 if (OpC->isZeroValue()) 56 uint64_t OpValue = OpC->getUniqueInteger().getZExtValue(); 64 if (IntIdxTy->isVectorTy() && !OpC->getType()->isVectorTy()) 65 OpC = ConstantVector::getSplat( 66 cast<VectorType>(IntIdxTy)->getElementCount(), OpC); 70 ConstantExpr::getIntegerCast(OpC, IntIdxTy, true /*SExt*/);
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | Annotation2Metadata.cpp | 47 auto *OpC = dyn_cast<ConstantStruct>(&Op); in convertAnnotation2Metadata() local 48 if (!OpC || OpC->getNumOperands() != 4) in convertAnnotation2Metadata() 50 auto *StrGEP = dyn_cast<ConstantExpr>(OpC->getOperand(1)); in convertAnnotation2Metadata() 60 auto *Bitcast = dyn_cast<ConstantExpr>(OpC->getOperand(0)); in convertAnnotation2Metadata()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCRegisterInfo.cpp | 1410 switch (OpC) { in offsetMinAlignForOpcode() 1492 if ((OpC == PPC::DYNAREAOFFSET || OpC == PPC::DYNAREAOFFSET8)) { in eliminateFrameIndex() 1499 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) { in eliminateFrameIndex() 1514 if (OpC == PPC::SPILL_CR) { in eliminateFrameIndex() 1526 } else if (OpC == PPC::SPILL_ACC || OpC == PPC::SPILL_UACC) { in eliminateFrameIndex() 1529 } else if (OpC == PPC::RESTORE_ACC || OpC == PPC::RESTORE_UACC) { in eliminateFrameIndex() 1550 OpC != TargetOpcode::PATCHPOINT && !ImmToIdxMap.count(OpC); in eliminateFrameIndex() 1569 if ((OpC == PPC::LXVP || OpC == PPC::STXVP) && in eliminateFrameIndex() 1574 OpC = NewOpc; in eliminateFrameIndex() 1587 bool OffsetFitsMnemonic = (OpC == PPC::EVSTDD || OpC == PPC::EVLDD) ? in eliminateFrameIndex() [all …]
|
| H A D | PPCInstrInfo.cpp | 2187 if (OpC == PPC::BLR || OpC == PPC::BLR8) { in PredicateInstruction() 2247 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 || OpC == PPC::BCTRL || in PredicateInstruction() 2248 OpC == PPC::BCTRL8 || OpC == PPC::BCTRL_RM || in PredicateInstruction() 2253 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8 || in PredicateInstruction() 2254 OpC == PPC::BCTRL_RM || OpC == PPC::BCTRL8_RM; in PredicateInstruction() 2278 if (OpC == PPC::BCTRL_RM || OpC == PPC::BCTRL8_RM) in PredicateInstruction() 2396 if (OpC == PPC::FCMPUS || OpC == PPC::FCMPUD) in optimizeCompareInstr() 2409 bool is32BitSignedCompare = OpC == PPC::CMPWI || OpC == PPC::CMPW; in optimizeCompareInstr() 2410 bool is32BitUnsignedCompare = OpC == PPC::CMPLWI || OpC == PPC::CMPLW; in optimizeCompareInstr() 2563 if ((OpC == PPC::CMPW || OpC == PPC::CMPLW || in optimizeCompareInstr() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
| H A D | SimpleRemoteEPCServer.cpp | 61 SimpleRemoteEPCServer::handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in handleMessage() argument 67 switch (OpC) { in handleMessage() 93 if (static_cast<UT>(OpC) > static_cast<UT>(SimpleRemoteEPCOpcode::LastOpC)) in handleMessage() 98 switch (OpC) { in handleMessage() 151 Error SimpleRemoteEPCServer::sendMessage(SimpleRemoteEPCOpcode OpC, in sendMessage() argument 157 switch (OpC) { in sendMessage() 181 auto Err = T->sendMessage(OpC, SeqNo, TagAddr, ArgBytes); in sendMessage()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | SimpleRemoteEPC.cpp | 102 SimpleRemoteEPC::handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in handleMessage() argument 108 switch (OpC) { in handleMessage() 134 if (static_cast<UT>(OpC) > static_cast<UT>(SimpleRemoteEPCOpcode::LastOpC)) in handleMessage() 138 switch (OpC) { in handleMessage() 201 Error SimpleRemoteEPC::sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in sendMessage() argument 204 assert(OpC != SimpleRemoteEPCOpcode::Setup && in sendMessage() 209 switch (OpC) { in sendMessage() 230 auto Err = T->sendMessage(OpC, SeqNo, TagAddr, ArgBytes); in sendMessage()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/Shared/ |
| H A D | SimpleRemoteEPCUtils.cpp | 86 Error FDSimpleRemoteEPCTransport::sendMessage(SimpleRemoteEPCOpcode OpC, in sendMessage() argument 95 static_cast<uint64_t>(OpC); in sendMessage() 204 SimpleRemoteEPCOpcode OpC; in listenLoop() local 210 OpC = static_cast<SimpleRemoteEPCOpcode>(static_cast<uint64_t>( in listenLoop() 232 if (auto Action = C.handleMessage(OpC, SeqNo, TagAddr, ArgBytes)) { in listenLoop()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Operator.cpp | 67 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in getMaxPreservedAlignment() local 71 Offset = SL->getElementOffset(OpC->getZExtValue()); in getMaxPreservedAlignment() 77 if (OpC) in getMaxPreservedAlignment() 78 ElemCount = OpC->getZExtValue(); in getMaxPreservedAlignment()
|
| H A D | Constants.cpp | 1662 Constant *OpC = getOperand(I); in getSplatValue() local 1663 if (OpC == Elt) in getSplatValue() 1671 if (isa<UndefValue>(OpC)) in getSplatValue() 1676 Elt = OpC; in getSplatValue() 1678 if (OpC != Elt) in getSplatValue()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Operator.h | 146 static bool isPossiblyExactOpcode(unsigned OpC) { in isPossiblyExactOpcode() argument 147 return OpC == Instruction::SDiv || in isPossiblyExactOpcode() 148 OpC == Instruction::UDiv || in isPossiblyExactOpcode() 149 OpC == Instruction::AShr || in isPossiblyExactOpcode() 150 OpC == Instruction::LShr; in isPossiblyExactOpcode()
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | SimpleRemoteEPCUtils.h | 65 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr, 92 virtual Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, 120 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
|
| /llvm-project-15.0.7/mlir/test/mlir-tblgen/ |
| H A D | op-result.td | 40 def OpC : NS_Op<"three_normal_result_op", []> { 44 // CHECK-LABEL: OpC definitions 45 // CHECK: void OpC::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::… 50 // CHECK: void OpC::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::m…
|
| H A D | constraint-unique.td | 45 // OpC has the same type, attribute, successor, and region predicates but has 48 def OpC : NS_Op<"op_c"> { 139 // CHECK-LABEL: OpC::verify
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | SimpleRemoteEPC.h | 87 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr, 102 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/ |
| H A D | SimpleRemoteEPCServer.h | 133 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr, 141 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAttributor.cpp | 188 const auto *OpC = dyn_cast<Constant>(U); in getConstantAccess() local 189 if (!OpC) in getConstantAccess() 192 Result |= getConstantAccess(OpC); in getConstantAccess()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 1293 unsigned OpC = in ConstantFoldCompareInstOperands() local 1295 return ConstantFoldBinaryOpOperands(OpC, LHS, RHS, DL); in ConstantFoldCompareInstOperands() 3247 const APFloat &Op = OpC->getValueAPF(); in isMathLibCallNoop() 3264 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop() 3266 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop() 3274 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop() 3276 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop() 3293 Type *Ty = OpC->getType(); in isMathLibCallNoop() 3295 return ConstantFoldFP(tan, OpC->getValueAPF(), Ty) != nullptr; in isMathLibCallNoop() 3315 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop() [all …]
|
| H A D | InlineCost.cpp | 1308 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset() local 1309 if (!OpC) in accumulateGEPOffset() 1311 OpC = dyn_cast<ConstantInt>(SimpleOp); in accumulateGEPOffset() 1312 if (!OpC) in accumulateGEPOffset() 1314 if (OpC->isZero()) in accumulateGEPOffset() 1319 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() 1326 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
|
| H A D | CGSCCPassManager.cpp | 952 if (auto *OpC = dyn_cast<Constant>(Op)) in updateCGAndAnalysisManagerForPass() local 953 if (Visited.insert(OpC).second) in updateCGAndAnalysisManagerForPass() 954 Worklist.push_back(OpC); in updateCGAndAnalysisManagerForPass()
|
| H A D | ScalarEvolution.cpp | 9064 Instruction::BinaryOps OpC; in computeShiftCompareExitLimit() local 9076 if (MatchPositiveShift(LHS, V, OpC)) { in computeShiftCompareExitLimit() 9077 PostShiftOpCode = OpC; in computeShiftCompareExitLimit() 9532 Constant *OpC = BuildConstantFromSCEV(Op); in BuildConstantFromSCEV() local 9533 if (!OpC) in BuildConstantFromSCEV() 9536 C = OpC; in BuildConstantFromSCEV() 9546 OpC = ConstantExpr::getBitCast(OpC, DestPtrTy); in BuildConstantFromSCEV() 9550 C = ConstantExpr::getAdd(C, OpC); in BuildConstantFromSCEV() 9560 Constant *OpC = BuildConstantFromSCEV(Op); in BuildConstantFromSCEV() local 9561 if (!OpC) in BuildConstantFromSCEV() [all …]
|
| H A D | ValueTracking.cpp | 2254 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand()); in isGEPKnownNonNull() local 2255 unsigned ElementIdx = OpC->getZExtValue(); in isGEPKnownNonNull() 2269 if (ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand())) { in isGEPKnownNonNull() local 2270 if (!OpC->isZero()) in isGEPKnownNonNull() 7293 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in getOffsetFromIndex() local 7294 if (!OpC) in getOffsetFromIndex() 7296 if (OpC->isZero()) in getOffsetFromIndex() 7301 Offset += DL.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in getOffsetFromIndex() 7310 Offset += Size.getFixedSize() * OpC->getSExtValue(); in getOffsetFromIndex()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonStoreWidening.cpp | 129 unsigned OpC = MI->getOpcode(); in getStoreOffset() local 132 switch (OpC) { in getStoreOffset()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 819 if (Constant *OpC = getConstant(OpSt)) { in visitCastInst() local 821 Constant *C = ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL); in visitCastInst()
|
| H A D | SimplifyLibCalls.cpp | 2381 auto *OpC = dyn_cast<CallInst>(Op1); in optimizeTan() local 2382 if (!OpC) in optimizeTan() 2386 if (!CI->isFast() || !OpC->isFast()) in optimizeTan() 2393 Function *F = OpC->getCalledFunction(); in optimizeTan() 2399 Ret = OpC->getArgOperand(0); in optimizeTan()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | TargetInstrInfo.cpp | 840 MachineOperand &OpC = Root.getOperand(0); in reassociateOps() local 846 Register RegC = OpC.getReg(); in reassociateOps()
|