Home
last modified time | relevance | path

Searched refs:OpC (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp45 auto *OpC = dyn_cast<ConstantStruct>(&Op); in convertAnnotation2Metadata() local
46 if (!OpC || OpC->getNumOperands() != 4) in convertAnnotation2Metadata()
48 auto *StrC = dyn_cast<GlobalValue>(OpC->getOperand(1)->stripPointerCasts()); in convertAnnotation2Metadata()
54 auto *Fn = dyn_cast<Function>(OpC->getOperand(0)->stripPointerCasts()); in convertAnnotation2Metadata()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCRegisterInfo.cpp1528 switch (OpC) { in offsetMinAlignForOpcode()
1610 if ((OpC == PPC::DYNAREAOFFSET || OpC == PPC::DYNAREAOFFSET8)) { in eliminateFrameIndex()
1618 (OpC == PPC::DYNALLOC || OpC == PPC::DYNALLOC8)) { in eliminateFrameIndex()
1635 if (OpC == PPC::SPILL_CR) { in eliminateFrameIndex()
1647 } else if (OpC == PPC::SPILL_ACC || OpC == PPC::SPILL_UACC) { in eliminateFrameIndex()
1650 } else if (OpC == PPC::RESTORE_ACC || OpC == PPC::RESTORE_UACC) { in eliminateFrameIndex()
1677 OpC != TargetOpcode::PATCHPOINT && !ImmToIdxMap.count(OpC); in eliminateFrameIndex()
1696 if ((OpC == PPC::LXVP || OpC == PPC::STXVP) && in eliminateFrameIndex()
1701 OpC = NewOpc; in eliminateFrameIndex()
1714 bool OffsetFitsMnemonic = (OpC == PPC::EVSTDD || OpC == PPC::EVLDD) ? in eliminateFrameIndex()
[all …]
H A DPPCInstrInfo.cpp2164 if (OpC == PPC::BLR || OpC == PPC::BLR8) { in PredicateInstruction()
2224 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 || OpC == PPC::BCTRL || in PredicateInstruction()
2225 OpC == PPC::BCTRL8 || OpC == PPC::BCTRL_RM || in PredicateInstruction()
2230 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8 || in PredicateInstruction()
2231 OpC == PPC::BCTRL_RM || OpC == PPC::BCTRL8_RM; in PredicateInstruction()
2255 if (OpC == PPC::BCTRL_RM || OpC == PPC::BCTRL8_RM) in PredicateInstruction()
2373 if (OpC == PPC::FCMPUS || OpC == PPC::FCMPUD) in optimizeCompareInstr()
2386 bool is32BitSignedCompare = OpC == PPC::CMPWI || OpC == PPC::CMPW; in optimizeCompareInstr()
2387 bool is32BitUnsignedCompare = OpC == PPC::CMPLWI || OpC == PPC::CMPLW; in optimizeCompareInstr()
2545 if ((OpC == PPC::CMPW || OpC == PPC::CMPLW || in optimizeCompareInstr()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DSimpleRemoteEPCServer.cpp63 SimpleRemoteEPCServer::handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in handleMessage() argument
69 switch (OpC) { in handleMessage()
94 if (static_cast<UT>(OpC) > static_cast<UT>(SimpleRemoteEPCOpcode::LastOpC)) in handleMessage()
99 switch (OpC) { in handleMessage()
152 Error SimpleRemoteEPCServer::sendMessage(SimpleRemoteEPCOpcode OpC, in sendMessage() argument
158 switch (OpC) { in sendMessage()
181 auto Err = T->sendMessage(OpC, SeqNo, TagAddr, ArgBytes); in sendMessage()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Shared/
H A DSimpleRemoteEPCUtils.cpp86 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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DSimpleRemoteEPC.cpp119 SimpleRemoteEPC::handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in handleMessage() argument
125 switch (OpC) { in handleMessage()
150 if (static_cast<UT>(OpC) > static_cast<UT>(SimpleRemoteEPCOpcode::LastOpC)) in handleMessage()
154 switch (OpC) { in handleMessage()
217 Error SimpleRemoteEPC::sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in sendMessage() argument
220 assert(OpC != SimpleRemoteEPCOpcode::Setup && in sendMessage()
225 switch (OpC) { in sendMessage()
245 auto Err = T->sendMessage(OpC, SeqNo, TagAddr, ArgBytes); in sendMessage()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLocal.cpp43 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()
H A DCGSCCPassManager.cpp930 if (auto *OpC = dyn_cast<Constant>(Op)) in updateCGAndAnalysisManagerForPass() local
931 if (Visited.insert(OpC).second) in updateCGAndAnalysisManagerForPass()
932 Worklist.push_back(OpC); in updateCGAndAnalysisManagerForPass()
H A DConstantFolding.cpp3427 if (ConstantFP *OpC = dyn_cast<ConstantFP>(Call->getArgOperand(0))) { in isMathLibCallNoop() local
3428 const APFloat &Op = OpC->getValueAPF(); in isMathLibCallNoop()
3445 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop()
3447 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop()
3455 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop()
3457 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop()
3474 Type *Ty = OpC->getType(); in isMathLibCallNoop()
3476 return ConstantFoldFP(tan, OpC->getValueAPF(), Ty) != nullptr; in isMathLibCallNoop()
3503 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop()
3505 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop()
H A DInlineCost.cpp1415 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset() local
1416 if (!OpC) in accumulateGEPOffset()
1418 OpC = dyn_cast<ConstantInt>(SimpleOp); in accumulateGEPOffset()
1419 if (!OpC) in accumulateGEPOffset()
1421 if (OpC->isZero()) in accumulateGEPOffset()
1426 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset()
1433 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
H A DScalarEvolution.cpp7800 unsigned MulZeros = OpC->getAPInt().countr_zero(); in createSCEV()
7804 MulOps.push_back(getConstant(OpC->getAPInt().lshr(GCD))); in createSCEV()
9311 Instruction::BinaryOps OpC; in computeShiftCompareExitLimit() local
9323 if (MatchPositiveShift(LHS, V, OpC)) { in computeShiftCompareExitLimit()
9324 PostShiftOpCode = OpC; in computeShiftCompareExitLimit()
9768 Constant *OpC = BuildConstantFromSCEV(Op); in BuildConstantFromSCEV() local
9769 if (!OpC) in BuildConstantFromSCEV()
9772 C = OpC; in BuildConstantFromSCEV()
9777 if (OpC->getType()->isPointerTy()) { in BuildConstantFromSCEV()
9781 OpC, C); in BuildConstantFromSCEV()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp80 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in getMaxPreservedAlignment() local
84 Offset = SL->getElementOffset(OpC->getZExtValue()); in getMaxPreservedAlignment()
89 const uint64_t ElemCount = OpC ? OpC->getZExtValue() : 1; in getMaxPreservedAlignment()
H A DValue.cpp1004 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in getOffsetFromIndex() local
1005 if (!OpC) in getOffsetFromIndex()
1007 if (OpC->isZero()) in getOffsetFromIndex()
1012 Offset += DL.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in getOffsetFromIndex()
1021 Offset += Size.getFixedValue() * OpC->getSExtValue(); in getOffsetFromIndex()
H A DConstants.cpp1652 Constant *OpC = getOperand(I); in getSplatValue() local
1653 if (OpC == Elt) in getSplatValue()
1661 if (isa<UndefValue>(OpC)) in getSplatValue()
1666 Elt = OpC; in getSplatValue()
1668 if (OpC != Elt) in getSplatValue()
H A DVerifier.cpp2354 const auto *OpC = dyn_cast<Constant>(U); in visitConstantExprsRecursively() local
2355 if (!OpC) in visitConstantExprsRecursively()
2357 if (!ConstantExprVisited.insert(OpC).second) in visitConstantExprsRecursively()
2359 Stack.push_back(OpC); in visitConstantExprsRecursively()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h149 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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DSimpleRemoteEPCUtils.h66 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr,
93 virtual Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
121 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DSimpleRemoteEPC.h91 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr,
106 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/
H A DSimpleRemoteEPCServer.h146 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr,
154 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp230 const auto *OpC = dyn_cast<Constant>(U); in getConstantAccess() local
231 if (!OpC || !Visited.insert(OpC).second) in getConstantAccess()
234 Result |= getConstantAccess(OpC, Visited); in getConstantAccess()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonStoreWidening.cpp129 unsigned OpC = MI->getOpcode(); in getStoreOffset() local
132 switch (OpC) { in getStoreOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetInstrInfo.cpp1091 MachineOperand &OpC = Root.getOperand(0); in reassociateOps() local
1097 Register RegC = OpC.getReg(); in reassociateOps()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2620 auto *OpC = dyn_cast<CallInst>(Op1); in optimizeTan() local
2621 if (!OpC) in optimizeTan()
2625 if (!CI->isFast() || !OpC->isFast()) in optimizeTan()
2632 Function *F = OpC->getCalledFunction(); in optimizeTan()
2638 Ret = OpC->getArgOperand(0); in optimizeTan()
H A DSCCPSolver.cpp1241 if (Constant *OpC = getConstant(OpSt, I.getOperand(0)->getType())) { in visitCastInst() local
1244 ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL)) in visitCastInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1116 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in visitGetElementPtrInst() local
1117 if (!OpC) in visitGetElementPtrInst()
1122 unsigned ElementIdx = OpC->getZExtValue(); in visitGetElementPtrInst()
1129 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in visitGetElementPtrInst()

12