Home
last modified time | relevance | path

Searched refs:OpIndex (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWindowsSecureHotPatching.cpp414 for (unsigned OpIndex = 0; OpIndex < NumOperands; ++OpIndex) { in rewriteGlobalVariablesInConstant() local
415 Value *OldValue = C->getOperand(OpIndex); in rewriteGlobalVariablesInConstant()
434 for (unsigned OpIndex = 0; OpIndex < NumOperands; ++OpIndex) { in rewriteGlobalVariablesInConstant() local
435 Value *ReplacedValue = ReplacedValues[OpIndex]; in rewriteGlobalVariablesInConstant()
437 NewInst->setOperand(OpIndex, ReplacedValue); in rewriteGlobalVariablesInConstant()
465 for (unsigned OpIndex = 0; OpIndex < NumOperands; ++OpIndex) { in searchConstantExprForGlobalVariables() local
466 Value *Op = U->getOperand(OpIndex); in searchConstantExprForGlobalVariables()
511 for (unsigned OpIndex = 0; OpIndex < NumOperands; ++OpIndex) { in runOnFunction() local
512 Value *V = I.getOperand(OpIndex); in runOnFunction()
540 GVUses.push_back(GlobalVariableUse{&I, OpIndex}); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DPredicateExpander.cpp22 void PredicateExpander::expandCheckImmOperand(raw_ostream &OS, int OpIndex, in expandCheckImmOperand() argument
27 OS << "MI" << (isByRef() ? "." : "->") << "getOperand(" << OpIndex in expandCheckImmOperand()
34 void PredicateExpander::expandCheckImmOperand(raw_ostream &OS, int OpIndex, in expandCheckImmOperand() argument
38 expandCheckImmOperandSimple(OS, OpIndex, FunctionMapper); in expandCheckImmOperand()
42 OS << "MI" << (isByRef() ? "." : "->") << "getOperand(" << OpIndex in expandCheckImmOperand()
50 int OpIndex, in expandCheckImmOperandSimple() argument
56 OS << "MI" << (isByRef() ? "." : "->") << "getOperand(" << OpIndex in expandCheckImmOperandSimple()
62 void PredicateExpander::expandCheckImmOperandLT(raw_ostream &OS, int OpIndex, in expandCheckImmOperandLT() argument
67 OS << "MI" << (isByRef() ? "." : "->") << "getOperand(" << OpIndex in expandCheckImmOperandLT()
74 void PredicateExpander::expandCheckImmOperandGT(raw_ostream &OS, int OpIndex, in expandCheckImmOperandGT() argument
[all …]
H A DPredicateExpander.h55 void expandCheckImmOperand(raw_ostream &OS, int OpIndex, int ImmVal,
57 void expandCheckImmOperand(raw_ostream &OS, int OpIndex, StringRef ImmVal,
59 void expandCheckImmOperandSimple(raw_ostream &OS, int OpIndex,
61 void expandCheckImmOperandLT(raw_ostream &OS, int OpIndex, int ImmVal,
63 void expandCheckImmOperandGT(raw_ostream &OS, int OpIndex, int ImmVal,
65 void expandCheckRegOperand(raw_ostream &OS, int OpIndex, const Record *Reg,
67 void expandCheckRegOperandSimple(raw_ostream &OS, int OpIndex,
79 void expandCheckIsRegOperand(raw_ostream &OS, int OpIndex);
80 void expandCheckIsVRegOperand(raw_ostream &OS, int OpIndex);
81 void expandCheckIsImmOperand(raw_ostream &OS, int OpIndex);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MCA/
H A DInstrBuilder.cpp347 Write.OpIndex = i; in populateWrites()
362 dbgs() << "\t\t[Def] OpIdx=" << Write.OpIndex in populateWrites()
374 Write.OpIndex = ~CurrentDef; in populateWrites()
392 dbgs() << "\t\t[Def][I] OpIdx=" << ~Write.OpIndex in populateWrites()
401 Write.OpIndex = OptionalDefIdx; in populateWrites()
407 dbgs() << "\t\t[Def][O] OpIdx=" << Write.OpIndex in populateWrites()
418 for (unsigned I = 0, OpIndex = MCDesc.getNumOperands(); in populateWrites() local
419 I < NumVariadicOps && !AssumeUsesOnly; ++I, ++OpIndex) { in populateWrites()
420 const MCOperand &Op = MCI.getOperand(OpIndex); in populateWrites()
427 Write.OpIndex = OpIndex; in populateWrites()
[all …]
H A DInstruction.cpp126 dbgs() << "{ OpIdx=" << WD->OpIndex << ", Lat=" << getLatency() << ", RegID " in dump()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFStreamer.cpp43 for (unsigned OpIndex = 0; OpIndex < Inst.getNumOperands(); ++OpIndex) { in emitInstruction() local
44 const MCOperand &Op = Inst.getOperand(OpIndex); in emitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCTargetDesc.cpp581 unsigned OpIndex = Desc.NumDefs; in evaluateMemoryOperandAddress() local
582 while (OpIndex < Desc.getNumOperands() && in evaluateMemoryOperandAddress()
583 Desc.operands()[OpIndex].OperandType != MCOI::OPERAND_MEMORY) in evaluateMemoryOperandAddress()
584 ++OpIndex; in evaluateMemoryOperandAddress()
585 if (OpIndex == Desc.getNumOperands()) in evaluateMemoryOperandAddress()
613 return evaluateMemOpAddrForAddrMode_i12(Inst, Desc, OpIndex, Addr); in evaluateMemoryOperandAddress()
615 return evaluateMemOpAddrForAddrMode3(Inst, Desc, OpIndex, Addr); in evaluateMemoryOperandAddress()
617 return evaluateMemOpAddrForAddrMode5(Inst, Desc, OpIndex, Addr); in evaluateMemoryOperandAddress()
619 return evaluateMemOpAddrForAddrMode5FP16(Inst, Desc, OpIndex, Addr); in evaluateMemoryOperandAddress()
621 return evaluateMemOpAddrForAddrModeT2_i8s4(Inst, Desc, OpIndex, Addr); in evaluateMemoryOperandAddress()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/
H A DInstruction.h140 int OpIndex; member
160 bool isImplicitWrite() const { return OpIndex < 0; }; in isImplicitWrite()
168 int OpIndex; member
178 bool isImplicitRead() const { return OpIndex < 0; }; in isImplicitRead()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugLine.cpp500 OpIndex = 0; in reset()
518 << format(" %6u %3u %13u %7u ", File, Isa, Discriminator, OpIndex) in dump()
690 uint64_t AddrOffset = ((Row.OpIndex + OperationAdvance) / MaxOpsPerInst) * in advanceAddrOpIndex()
694 uint8_t PrevOpIndex = Row.OpIndex; in advanceAddrOpIndex()
695 Row.OpIndex = (Row.OpIndex + OperationAdvance) % MaxOpsPerInst; in advanceAddrOpIndex()
696 int16_t OpIndexDelta = static_cast<int16_t>(Row.OpIndex) - PrevOpIndex; in advanceAddrOpIndex()
962 State.Row.OpIndex = 0; in parse()
1172 State.Row.OpIndex = 0; in parse()
1244 << ", op-index += " << Delta.OpIndex; in parse()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFDebugLine.h174 uint8_t OpIndex; member
435 int16_t OpIndex; member
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstructionSelector.cpp
H A DX86FastISel.cpp1929 unsigned TypeIndex, OpIndex; in X86SelectDivRem() local
1943 case Instruction::SDiv: OpIndex = 0; break; in X86SelectDivRem()
1944 case Instruction::SRem: OpIndex = 1; break; in X86SelectDivRem()
1945 case Instruction::UDiv: OpIndex = 2; break; in X86SelectDivRem()
1946 case Instruction::URem: OpIndex = 3; break; in X86SelectDivRem()
1950 const DivRemEntry::DivRemResult &OpEntry = TypeEntry.ResultTable[OpIndex]; in X86SelectDivRem()
H A DX86ISelLowering.cpp17325 unsigned OpIndex = i / 2; in lowerV4X128Shuffle() local
17326 if (Ops[OpIndex].isUndef()) in lowerV4X128Shuffle()
17327 Ops[OpIndex] = Op; in lowerV4X128Shuffle()
17328 else if (Ops[OpIndex] != Op) in lowerV4X128Shuffle()
40053 unsigned OpIndex = i / 2; in combineX86ShuffleChain() local
40054 if (Ops[OpIndex].isUndef()) in combineX86ShuffleChain()
40055 Ops[OpIndex] = Op; in combineX86ShuffleChain()
40056 else if (Ops[OpIndex] != Op) in combineX86ShuffleChain()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/
H A DX86InstructionSelector.cpp1755 unsigned OpIndex; in selectMulDivRem() local
1760 OpIndex = 0; in selectMulDivRem()
1763 OpIndex = 1; in selectMulDivRem()
1766 OpIndex = 2; in selectMulDivRem()
1769 OpIndex = 3; in selectMulDivRem()
1772 OpIndex = 4; in selectMulDivRem()
1775 OpIndex = 5; in selectMulDivRem()
1778 OpIndex = 6; in selectMulDivRem()
1784 TypeEntry.ResultTable[OpIndex]; in selectMulDivRem()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DAsmWriterEmitter.cpp775 int OpIndex, PrintIndex; in formatAliasString() local
776 std::tie(OpIndex, PrintIndex) = getOpData(Name); in formatAliasString()
779 OS << format("\\x%02X", (unsigned char)OpIndex + 1); in formatAliasString()
784 OS << format("\\xFF\\x%02X\\x%02X", OpIndex + 1, PrintIndex + 1); in formatAliasString()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeBasedAliasAnalysis.cpp298 unsigned OpIndex = FirstFieldOpNo + FieldIndex * NumOpsPerField; in getFieldType() local
299 auto *TypeNode = cast<MDNode>(getNode()->getOperand(OpIndex)); in getFieldType()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGHLSLBuiltins.cpp729 Value *OpIndex = EmitScalarExpr(E->getArg(1)); in EmitHLSLBuiltinExpr() local
734 ArrayRef{OpExpr, OpIndex}, "hlsl.wave.readlane"); in EmitHLSLBuiltinExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/Disassembler/
H A DHexagonDisassembler.cpp541 unsigned OpIndex = HexagonMCInstrInfo::getNewValueOp(*MCII, MI); in getSingleInstruction() local
542 MCOperand &MCO = MI.getOperand(OpIndex); in getSingleInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVModuleAnalysis.cpp56 static unsigned getMetadataUInt(MDNode *MdNode, unsigned OpIndex, in getMetadataUInt() argument
58 if (MdNode && OpIndex < MdNode->getNumOperands()) { in getMetadataUInt()
59 const auto &Op = MdNode->getOperand(OpIndex); in getMetadataUInt()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FrameLowering.cpp5456 int OpIndex; in orderFrameObjects() local
5460 OpIndex = 3; in orderFrameObjects()
5466 OpIndex = 1; in orderFrameObjects()
5469 OpIndex = -1; in orderFrameObjects()
5473 if (OpIndex >= 0) { in orderFrameObjects()
5474 const MachineOperand &MO = MI.getOperand(OpIndex); in orderFrameObjects()
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetInstrPredicate.td92 int OpIndex = Index;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1943 for (auto OpIndex : OpsToMoveUseToIncomingBB) { in foldOpIntoPhi() local
1944 Value *Op = PN->getIncomingValue(OpIndex); in foldOpIntoPhi()
1945 BasicBlock *OpBB = PN->getIncomingBlock(OpIndex); in foldOpIntoPhi()
1960 NewPhiValues[OpIndex] = Clone; in foldOpIntoPhi()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp330 unsigned OpIndex = any_of(Shuf->getShuffleMask(), [&NumOpElts](int M) { in widenSubvectorLoad() local
334 auto *Load = dyn_cast<LoadInst>(Shuf->getOperand(OpIndex)); in widenSubvectorLoad()