Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp44 auto *OpC = dyn_cast<ConstantStruct>(&Op); in convertAnnotation2Metadata() local
45 if (!OpC || OpC->getNumOperands() != 4) in convertAnnotation2Metadata()
47 auto *StrC = dyn_cast<GlobalValue>(OpC->getOperand(1)->stripPointerCasts()); in convertAnnotation2Metadata()
53 auto *Fn = dyn_cast<Function>(OpC->getOperand(0)->stripPointerCasts()); in convertAnnotation2Metadata()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DSimpleRemoteEPCServer.cpp62 SimpleRemoteEPCServer::handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in handleMessage() argument
68 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()
180 auto Err = T->sendMessage(OpC, SeqNo, TagAddr, ArgBytes); in sendMessage()
/freebsd/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/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.cpp943 if (auto *OpC = dyn_cast<Constant>(Op)) in updateCGAndAnalysisManagerForPass() local
944 if (Visited.insert(OpC).second) in updateCGAndAnalysisManagerForPass()
945 Worklist.push_back(OpC); in updateCGAndAnalysisManagerForPass()
H A DConstantFolding.cpp4097 if (ConstantFP *OpC = dyn_cast<ConstantFP>(Call->getArgOperand(0))) { in isMathLibCallNoop() local
4098 const APFloat &Op = OpC->getValueAPF(); in isMathLibCallNoop()
4118 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop()
4120 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop()
4128 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop()
4130 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop()
4147 Type *Ty = OpC->getType(); in isMathLibCallNoop()
4149 return ConstantFoldFP(tan, OpC->getValueAPF(), Ty) != nullptr; in isMathLibCallNoop()
4175 if (OpC->getType()->isDoubleTy()) in isMathLibCallNoop()
4177 if (OpC->getType()->isFloatTy()) in isMathLibCallNoop()
H A DInlineCost.cpp1538 ConstantInt *OpC = in accumulateGEPOffset() local
1540 if (!OpC) in accumulateGEPOffset()
1542 if (OpC->isZero()) in accumulateGEPOffset()
1547 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset()
1554 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DSimpleRemoteEPC.cpp134 SimpleRemoteEPC::handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in handleMessage() argument
140 switch (OpC) { in handleMessage()
165 if (static_cast<UT>(OpC) > static_cast<UT>(SimpleRemoteEPCOpcode::LastOpC)) in handleMessage()
169 switch (OpC) { in handleMessage()
248 Error SimpleRemoteEPC::sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, in sendMessage() argument
251 assert(OpC != SimpleRemoteEPCOpcode::Setup && in sendMessage()
256 switch (OpC) { in sendMessage()
276 auto Err = T->sendMessage(OpC, SeqNo, TagAddr, ArgBytes); in sendMessage()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCRegisterInfo.cpp94 static unsigned offsetMinAlignForOpcode(unsigned OpC);
1621 static unsigned offsetMinAlignForOpcode(unsigned OpC) { in offsetMinAlignForOpcode() argument
1622 switch (OpC) { in offsetMinAlignForOpcode()
1655 unsigned OpC = MI.getOpcode(); in offsetMinAlign() local
1656 return offsetMinAlignForOpcode(OpC); in offsetMinAlign()
1702 unsigned OpC = MI.getOpcode(); in eliminateFrameIndex() local
1704 switch (OpC) { in eliminateFrameIndex()
1787 bool noImmForm = !MI.isInlineAsm() && OpC != TargetOpcode::STACKMAP && in eliminateFrameIndex()
1788 OpC != TargetOpcode::PATCHPOINT && !ImmToIdxMap.count(OpC); in eliminateFrameIndex()
1807 if ((OpC == PPC::LXVP || OpC == PPC::STXVP) && in eliminateFrameIndex()
[all …]
H A DPPCInstrInfo.cpp794 MachineOperand &OpC = Root.getOperand(0); in reassociateFMA() local
795 Register RegC = OpC.getReg(); in reassociateFMA()
2202 unsigned OpC = MI.getOpcode(); in PredicateInstruction() local
2203 if (OpC == PPC::BLR || OpC == PPC::BLR8) { in PredicateInstruction()
2226 } else if (OpC == PPC::B) { in PredicateInstruction()
2263 } else if (OpC == PPC::BCTR || OpC == PPC::BCTR8 || OpC == PPC::BCTRL || in PredicateInstruction()
2264 OpC == PPC::BCTRL8 || OpC == PPC::BCTRL_RM || in PredicateInstruction()
2265 OpC == PPC::BCTRL8_RM) { in PredicateInstruction()
2269 bool setLR = OpC == PPC::BCTRL || OpC == PPC::BCTRL8 || in PredicateInstruction()
2270 OpC == PPC::BCTRL_RM || OpC == PPC::BCTRL8_RM; in PredicateInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp96 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in getMaxPreservedAlignment() local
100 Offset = SL->getElementOffset(OpC->getZExtValue()); in getMaxPreservedAlignment()
105 const uint64_t ElemCount = OpC ? OpC->getZExtValue() : 1; in getMaxPreservedAlignment()
H A DValue.cpp1033 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in getOffsetFromIndex() local
1034 if (!OpC) in getOffsetFromIndex()
1036 if (OpC->isZero()) in getOffsetFromIndex()
1041 Offset += DL.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in getOffsetFromIndex()
1050 Offset += Size.getFixedValue() * OpC->getSExtValue(); in getOffsetFromIndex()
H A DConstants.cpp1755 Constant *OpC = getOperand(I); in getSplatValue() local
1756 if (OpC == Elt) in getSplatValue()
1764 if (isa<PoisonValue>(OpC)) in getSplatValue()
1769 Elt = OpC; in getSplatValue()
1771 if (OpC != Elt) in getSplatValue()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DSimpleRemoteEPCUtils.h67 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr,
94 virtual Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
122 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h177 static bool isPossiblyExactOpcode(unsigned OpC) {
178 return OpC == Instruction::SDiv ||
179 OpC == Instruction::UDiv ||
180 OpC == Instruction::AShr ||
181 OpC == Instruction::LShr;
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DSimpleRemoteEPC.h88 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr,
105 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/
H A DSimpleRemoteEPCServer.h147 handleMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo, ExecutorAddr TagAddr,
155 Error sendMessage(SimpleRemoteEPCOpcode OpC, uint64_t SeqNo,
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp72 Constant *OpC = cast<Constant>(Op); in getSplatValueAllowUndef() local
73 if (isa<UndefValue>(OpC)) in getSplatValueAllowUndef()
76 Res = OpC; in getSplatValueAllowUndef()
77 else if (Res != OpC) in getSplatValueAllowUndef()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp280 const auto *OpC = dyn_cast<Constant>(U); in getConstantAccess() local
281 if (!OpC || !Visited.insert(OpC).second) in getConstantAccess()
284 Result |= getConstantAccess(OpC, Visited); in getConstantAccess()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/
H A DBottomUpVec.cpp116 auto OpC = UOp0->getOpcode(); in createVectorInstr() local
117 return UnaryOperator::createWithCopiedFlags(OpC, Operands[0], UOp0, in createVectorInstr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenACC.cpp1394 BinaryOperatorKind OpC = BO->getOpcode(); in isValidForIncRHSAssign() local
1395 if (OpC != BO_Add && OpC != BO_Sub) in isValidForIncRHSAssign()
1397 return isValid(InitVar, BO->getLHS(), BO->getRHS(), OpC == BO_Add); in isValidForIncRHSAssign()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2838 auto *OpC = dyn_cast<CallInst>(Op1); in optimizeTrigInversionPairs() local
2839 if (!OpC) in optimizeTrigInversionPairs()
2843 if (!CI->isFast() || !OpC->isFast()) in optimizeTrigInversionPairs()
2852 Function *F = OpC->getCalledFunction(); in optimizeTrigInversionPairs()
2873 Ret = OpC->getArgOperand(0); in optimizeTrigInversionPairs()
H A DSCCPSolver.cpp1385 if (Constant *OpC = getConstant(OpSt, I.getOperand(0)->getType())) { in visitCastInst() local
1388 ConstantFoldCastOperand(I.getOpcode(), OpC, I.getType(), DL)) in visitCastInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp1797 const APInt *OpC; in foldSelectInstWithICmpConst() local
1798 if (match(Op, m_BinOp(m_Specific(V), m_APInt(OpC)))) { in foldSelectInstWithICmpConst()
1800 static_cast<Instruction::BinaryOps>(Op->getOpcode()), *OpC); in foldSelectInstWithICmpConst()
1807 MMI && MMI->getLHS() == V && match(MMI->getRHS(), m_APInt(OpC))) { in foldSelectInstWithICmpConst()
1809 {InvDomCR, ConstantRange(*OpC)}); in foldSelectInstWithICmpConst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetInstrInfo.cpp1329 MachineOperand &OpC = Root.getOperand(0); in reassociateOps() local
1335 Register RegC = OpC.getReg(); in reassociateOps()

12