Movatterモバイル変換


[0]ホーム

URL:


LLVM 20.0.0git
MachineOperand.h
Go to the documentation of this file.
1//===-- llvm/CodeGen/MachineOperand.h - MachineOperand class ----*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file contains the declaration of the MachineOperand class.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CODEGEN_MACHINEOPERAND_H
14#define LLVM_CODEGEN_MACHINEOPERAND_H
15
16#include "llvm/ADT/DenseMapInfo.h"
17#include "llvm/CodeGen/Register.h"
18#include "llvm/IR/Intrinsics.h"
19#include <cassert>
20
21namespacellvm {
22
23classLLT;
24classBlockAddress;
25classConstant;
26classConstantFP;
27classConstantInt;
28classGlobalValue;
29classMachineBasicBlock;
30classMachineInstr;
31classMachineRegisterInfo;
32classMCCFIInstruction;
33classMDNode;
34classModuleSlotTracker;
35classTargetIntrinsicInfo;
36classTargetRegisterInfo;
37classhash_code;
38classraw_ostream;
39classMCSymbol;
40
41/// MachineOperand class - Representation of each machine instruction operand.
42///
43/// This class isn't a POD type because it has a private constructor, but its
44/// destructor must be trivial. Functions like MachineInstr::addOperand(),
45/// MachineRegisterInfo::moveOperands(), and MF::DeleteMachineInstr() depend on
46/// not having to call the MachineOperand destructor.
47///
48classMachineOperand {
49public:
50enumMachineOperandType :unsignedchar {
51MO_Register,///< Register operand.
52MO_Immediate,///< Immediate operand
53MO_CImmediate,///< Immediate >64bit operand
54MO_FPImmediate,///< Floating-point immediate operand
55MO_MachineBasicBlock,///< MachineBasicBlock reference
56MO_FrameIndex,///< Abstract Stack Frame Index
57MO_ConstantPoolIndex,///< Address of indexed Constant in Constant Pool
58MO_TargetIndex,///< Target-dependent index+offset operand.
59MO_JumpTableIndex,///< Address of indexed Jump Table for switch
60MO_ExternalSymbol,///< Name of external global symbol
61MO_GlobalAddress,///< Address of a global value
62MO_BlockAddress,///< Address of a basic block
63MO_RegisterMask,///< Mask of preserved registers.
64MO_RegisterLiveOut,///< Mask of live-out registers.
65MO_Metadata,///< Metadata reference (for debug info)
66MO_MCSymbol,///< MCSymbol reference (for debug/eh info)
67MO_CFIIndex,///< MCCFIInstruction index.
68MO_IntrinsicID,///< Intrinsic ID for ISel
69MO_Predicate,///< Generic predicate for ISel
70MO_ShuffleMask,///< Other IR Constant for ISel (shuffle masks)
71MO_DbgInstrRef,///< Integer indices referring to an instruction+operand
72MO_Last =MO_DbgInstrRef
73 };
74
75private:
76 /// OpKind - Specify what kind of operand this is. This discriminates the
77 /// union.
78unsigned OpKind : 8;
79
80 /// Subregister number for MO_Register. A value of 0 indicates the
81 /// MO_Register has no subReg.
82 ///
83 /// For all other kinds of operands, this field holds target-specific flags.
84unsigned SubReg_TargetFlags : 12;
85
86 /// TiedTo - Non-zero when this register operand is tied to another register
87 /// operand. The encoding of this field is described in the block comment
88 /// before MachineInstr::tieOperands().
89unsigned TiedTo : 4;
90
91 /// IsDef - True if this is a def, false if this is a use of the register.
92 /// This is only valid on register operands.
93 ///
94unsigned IsDef : 1;
95
96 /// IsImp - True if this is an implicit def or use, false if it is explicit.
97 /// This is only valid on register opderands.
98 ///
99unsigned IsImp : 1;
100
101 /// IsDeadOrKill
102 /// For uses: IsKill - Conservatively indicates the last use of a register
103 /// on this path through the function. A register operand with true value of
104 /// this flag must be the last use of the register, a register operand with
105 /// false value may or may not be the last use of the register. After regalloc
106 /// we can use recomputeLivenessFlags to get precise kill flags.
107 /// For defs: IsDead - True if this register is never used by a subsequent
108 /// instruction.
109 /// This is only valid on register operands.
110unsigned IsDeadOrKill : 1;
111
112 /// See isRenamable().
113unsigned IsRenamable : 1;
114
115 /// IsUndef - True if this register operand reads an "undef" value, i.e. the
116 /// read value doesn't matter. This flag can be set on both use and def
117 /// operands. On a sub-register def operand, it refers to the part of the
118 /// register that isn't written. On a full-register def operand, it is a
119 /// noop. See readsReg().
120 ///
121 /// This is only valid on registers.
122 ///
123 /// Note that an instruction may have multiple <undef> operands referring to
124 /// the same register. In that case, the instruction may depend on those
125 /// operands reading the same dont-care value. For example:
126 ///
127 /// %1 = XOR undef %2, undef %2
128 ///
129 /// Any register can be used for %2, and its value doesn't matter, but
130 /// the two operands must be the same register.
131 ///
132unsigned IsUndef : 1;
133
134 /// IsInternalRead - True if this operand reads a value that was defined
135 /// inside the same instruction or bundle. This flag can be set on both use
136 /// and def operands. On a sub-register def operand, it refers to the part
137 /// of the register that isn't written. On a full-register def operand, it
138 /// is a noop.
139 ///
140 /// When this flag is set, the instruction bundle must contain at least one
141 /// other def of the register. If multiple instructions in the bundle define
142 /// the register, the meaning is target-defined.
143unsigned IsInternalRead : 1;
144
145 /// IsEarlyClobber - True if this MO_Register 'def' operand is written to
146 /// by the MachineInstr before all input registers are read. This is used to
147 /// model the GCC inline asm '&' constraint modifier.
148unsigned IsEarlyClobber : 1;
149
150 /// IsDebug - True if this MO_Register 'use' operand is in a debug pseudo,
151 /// not a real instruction. Such uses should be ignored during codegen.
152unsigned IsDebug : 1;
153
154 /// SmallContents - This really should be part of the Contents union, but
155 /// lives out here so we can get a better packed struct.
156 /// MO_Register: Register number.
157 /// OffsetedInfo: Low bits of offset.
158union{
159unsignedRegNo;// For MO_Register.
160unsignedOffsetLo;// Matches Contents.OffsetedInfo.OffsetHi.
161 } SmallContents;
162
163 /// ParentMI - This is the instruction that this operand is embedded into.
164 /// This is valid for all operand types, when the operand is in an instr.
165MachineInstr *ParentMI =nullptr;
166
167 /// Contents union - This contains the payload for the various operand types.
168unionContentsUnion {
169 ContentsUnion() {}
170 MachineBasicBlock *MBB;// For MO_MachineBasicBlock.
171const ConstantFP *CFP;// For MO_FPImmediate.
172const ConstantInt *CI;// For MO_CImmediate. Integers > 64bit.
173 int64_t ImmVal;// For MO_Immediate.
174constuint32_t *RegMask;// For MO_RegisterMask and MO_RegisterLiveOut.
175const MDNode *MD;// For MO_Metadata.
176 MCSymbol *Sym;// For MO_MCSymbol.
177unsigned CFIIndex;// For MO_CFI.
178Intrinsic::ID IntrinsicID;// For MO_IntrinsicID.
179unsigned Pred;// For MO_Predicate
180 ArrayRef<int> ShuffleMask;// For MO_ShuffleMask
181
182struct{// For MO_Register.
183// Register number is in SmallContents.RegNo.
184 MachineOperand *Prev;// Access list for register. See MRI.
185 MachineOperand *Next;
186 }Reg;
187
188struct{// For MO_DbgInstrRef.
189unsigned InstrIdx;
190unsigned OpIdx;
191 } InstrRef;
192
193 /// OffsetedInfo - This struct contains the offset and an object identifier.
194 /// this represent the object as with an optional offset from it.
195struct{
196union{
197intIndex;// For MO_*Index - The index itself.
198constchar *SymbolName;// For MO_ExternalSymbol.
199const GlobalValue *GV;// For MO_GlobalAddress.
200constBlockAddress *BA;// For MO_BlockAddress.
201 } Val;
202// Low bits of offset are in SmallContents.OffsetLo.
203int OffsetHi;// An offset from the object, high 32 bits.
204 } OffsetedInfo;
205 } Contents;
206
207explicit MachineOperand(MachineOperandType K)
208 : OpKind(K), SubReg_TargetFlags(0) {
209// Assert that the layout is what we expect. It's easy to grow this object.
210static_assert(alignof(MachineOperand) <=alignof(int64_t),
211"MachineOperand shouldn't be more than 8 byte aligned");
212static_assert(sizeof(Contents) <= 2 *sizeof(void *),
213"Contents should be at most two pointers");
214static_assert(sizeof(MachineOperand) <=
215alignTo<alignof(int64_t)>(2 *sizeof(unsigned) +
216 3 *sizeof(void *)),
217"MachineOperand too big. Should be Kind, SmallContents, "
218"ParentMI, and Contents");
219 }
220
221public:
222 /// getType - Returns the MachineOperandType for this operand.
223 ///
224MachineOperandTypegetType() const{return (MachineOperandType)OpKind; }
225
226unsignedgetTargetFlags() const{
227returnisReg() ? 0 : SubReg_TargetFlags;
228 }
229voidsetTargetFlags(unsignedF) {
230assert(!isReg() &&"Register operands can't have target flags");
231 SubReg_TargetFlags =F;
232assert(SubReg_TargetFlags ==F &&"Target flags out of range");
233 }
234voidaddTargetFlag(unsignedF) {
235assert(!isReg() &&"Register operands can't have target flags");
236 SubReg_TargetFlags |=F;
237assert((SubReg_TargetFlags &F) &&"Target flags out of range");
238 }
239
240
241 /// getParent - Return the instruction that this operand belongs to.
242 ///
243MachineInstr *getParent() {return ParentMI; }
244constMachineInstr *getParent() const{return ParentMI; }
245
246 /// clearParent - Reset the parent pointer.
247 ///
248 /// The MachineOperand copy constructor also copies ParentMI, expecting the
249 /// original to be deleted. If a MachineOperand is ever stored outside a
250 /// MachineInstr, the parent pointer must be cleared.
251 ///
252 /// Never call clearParent() on an operand in a MachineInstr.
253 ///
254voidclearParent() { ParentMI =nullptr; }
255
256 /// Returns the index of this operand in the instruction that it belongs to.
257unsignedgetOperandNo()const;
258
259 /// Print a subreg index operand.
260 /// MO_Immediate operands can also be subreg idices. If it's the case, the
261 /// subreg index name will be printed. MachineInstr::isOperandSubregIdx can be
262 /// called to check this.
263staticvoidprintSubRegIdx(raw_ostream &OS,uint64_tIndex,
264constTargetRegisterInfo *TRI);
265
266 /// Print operand target flags.
267staticvoidprintTargetFlags(raw_ostream&OS,constMachineOperand &Op);
268
269 /// Print a MCSymbol as an operand.
270staticvoidprintSymbol(raw_ostream &OS,MCSymbol &Sym);
271
272 /// Print a stack object reference.
273staticvoidprintStackObjectReference(raw_ostream &OS,unsigned FrameIndex,
274bool IsFixed,StringRefName);
275
276 /// Print the offset with explicit +/- signs.
277staticvoidprintOperandOffset(raw_ostream &OS, int64_tOffset);
278
279 /// Print an IRSlotNumber.
280staticvoidprintIRSlotNumber(raw_ostream &OS,int Slot);
281
282 /// Print the MachineOperand to \p os.
283 /// Providing a valid \p TRI and \p IntrinsicInfo results in a more
284 /// target-specific printing. If \p TRI and \p IntrinsicInfo are null, the
285 /// function will try to pick it up from the parent.
286voidprint(raw_ostream &os,constTargetRegisterInfo *TRI =nullptr,
287constTargetIntrinsicInfo *IntrinsicInfo =nullptr)const;
288
289 /// More complex way of printing a MachineOperand.
290 /// \param TypeToPrint specifies the generic type to be printed on uses and
291 /// defs. It can be determined using MachineInstr::getTypeToPrint.
292 /// \param OpIdx - specifies the index of the operand in machine instruction.
293 /// This will be used by target dependent MIR formatter. Could be std::nullopt
294 /// if the index is unknown, e.g. called by dump().
295 /// \param PrintDef - whether we want to print `def` on an operand which
296 /// isDef. Sometimes, if the operand is printed before '=', we don't print
297 /// `def`.
298 /// \param IsStandalone - whether we want a verbose output of the MO. This
299 /// prints extra information that can be easily inferred when printing the
300 /// whole function, but not when printing only a fragment of it.
301 /// \param ShouldPrintRegisterTies - whether we want to print register ties.
302 /// Sometimes they are easily determined by the instruction's descriptor
303 /// (MachineInstr::hasComplexRegiterTies can determine if it's needed).
304 /// \param TiedOperandIdx - if we need to print register ties this needs to
305 /// provide the index of the tied register. If not, it will be ignored.
306 /// \param TRI - provide more target-specific information to the printer.
307 /// Unlike the previous function, this one will not try and get the
308 /// information from it's parent.
309 /// \param IntrinsicInfo - same as \p TRI.
310voidprint(raw_ostream &os,ModuleSlotTracker &MST,LLT TypeToPrint,
311 std::optional<unsigned> OpIdx,bool PrintDef,bool IsStandalone,
312bool ShouldPrintRegisterTies,unsigned TiedOperandIdx,
313constTargetRegisterInfo *TRI,
314constTargetIntrinsicInfo *IntrinsicInfo)const;
315
316 /// Same as print(os, TRI, IntrinsicInfo), but allows to specify the low-level
317 /// type to be printed the same way the full version of print(...) does it.
318voidprint(raw_ostream &os,LLT TypeToPrint,
319constTargetRegisterInfo *TRI =nullptr,
320constTargetIntrinsicInfo *IntrinsicInfo =nullptr)const;
321
322voiddump()const;
323
324//===--------------------------------------------------------------------===//
325// Accessors that tell you what kind of MachineOperand you're looking at.
326//===--------------------------------------------------------------------===//
327
328 /// isReg - Tests if this is a MO_Register operand.
329boolisReg() const{return OpKind ==MO_Register; }
330 /// isImm - Tests if this is a MO_Immediate operand.
331boolisImm() const{return OpKind ==MO_Immediate; }
332 /// isCImm - Test if this is a MO_CImmediate operand.
333boolisCImm() const{return OpKind ==MO_CImmediate; }
334 /// isFPImm - Tests if this is a MO_FPImmediate operand.
335boolisFPImm() const{return OpKind ==MO_FPImmediate; }
336 /// isMBB - Tests if this is a MO_MachineBasicBlock operand.
337boolisMBB() const{return OpKind ==MO_MachineBasicBlock; }
338 /// isFI - Tests if this is a MO_FrameIndex operand.
339boolisFI() const{return OpKind ==MO_FrameIndex; }
340 /// isCPI - Tests if this is a MO_ConstantPoolIndex operand.
341boolisCPI() const{return OpKind ==MO_ConstantPoolIndex; }
342 /// isTargetIndex - Tests if this is a MO_TargetIndex operand.
343boolisTargetIndex() const{return OpKind ==MO_TargetIndex; }
344 /// isJTI - Tests if this is a MO_JumpTableIndex operand.
345boolisJTI() const{return OpKind ==MO_JumpTableIndex; }
346 /// isGlobal - Tests if this is a MO_GlobalAddress operand.
347boolisGlobal() const{return OpKind ==MO_GlobalAddress; }
348 /// isSymbol - Tests if this is a MO_ExternalSymbol operand.
349boolisSymbol() const{return OpKind ==MO_ExternalSymbol; }
350 /// isBlockAddress - Tests if this is a MO_BlockAddress operand.
351boolisBlockAddress() const{return OpKind ==MO_BlockAddress; }
352 /// isRegMask - Tests if this is a MO_RegisterMask operand.
353boolisRegMask() const{return OpKind ==MO_RegisterMask; }
354 /// isRegLiveOut - Tests if this is a MO_RegisterLiveOut operand.
355boolisRegLiveOut() const{return OpKind ==MO_RegisterLiveOut; }
356 /// isMetadata - Tests if this is a MO_Metadata operand.
357boolisMetadata() const{return OpKind ==MO_Metadata; }
358boolisMCSymbol() const{return OpKind ==MO_MCSymbol; }
359boolisDbgInstrRef() const{return OpKind ==MO_DbgInstrRef; }
360boolisCFIIndex() const{return OpKind ==MO_CFIIndex; }
361boolisIntrinsicID() const{return OpKind ==MO_IntrinsicID; }
362boolisPredicate() const{return OpKind ==MO_Predicate; }
363boolisShuffleMask() const{return OpKind ==MO_ShuffleMask; }
364//===--------------------------------------------------------------------===//
365// Accessors for Register Operands
366//===--------------------------------------------------------------------===//
367
368 /// getReg - Returns the register number.
369RegistergetReg() const{
370assert(isReg() &&"This is not a register operand!");
371returnRegister(SmallContents.RegNo);
372 }
373
374unsignedgetSubReg() const{
375assert(isReg() &&"Wrong MachineOperand accessor");
376return SubReg_TargetFlags;
377 }
378
379boolisUse() const{
380assert(isReg() &&"Wrong MachineOperand accessor");
381return !IsDef;
382 }
383
384boolisDef() const{
385assert(isReg() &&"Wrong MachineOperand accessor");
386return IsDef;
387 }
388
389boolisImplicit() const{
390assert(isReg() &&"Wrong MachineOperand accessor");
391return IsImp;
392 }
393
394boolisDead() const{
395assert(isReg() &&"Wrong MachineOperand accessor");
396return IsDeadOrKill & IsDef;
397 }
398
399boolisKill() const{
400assert(isReg() &&"Wrong MachineOperand accessor");
401return IsDeadOrKill & !IsDef;
402 }
403
404boolisUndef() const{
405assert(isReg() &&"Wrong MachineOperand accessor");
406return IsUndef;
407 }
408
409 /// isRenamable - Returns true if this register may be renamed, i.e. it does
410 /// not generate a value that is somehow read in a way that is not represented
411 /// by the Machine IR (e.g. to meet an ABI or ISA requirement). This is only
412 /// valid on physical register operands. Virtual registers are assumed to
413 /// always be renamable regardless of the value of this field.
414 ///
415 /// Operands that are renamable can freely be changed to any other register
416 /// that is a member of the register class returned by
417 /// MI->getRegClassConstraint().
418 ///
419 /// isRenamable can return false for several different reasons:
420 ///
421 /// - ABI constraints (since liveness is not always precisely modeled). We
422 /// conservatively handle these cases by setting all physical register
423 /// operands that didn’t start out as virtual regs to not be renamable.
424 /// Also any physical register operands created after register allocation or
425 /// whose register is changed after register allocation will not be
426 /// renamable. This state is tracked in the MachineOperand::IsRenamable
427 /// bit.
428 ///
429 /// - Opcode/target constraints: for opcodes that have complex register class
430 /// requirements (e.g. that depend on other operands/instructions), we set
431 /// hasExtraSrcRegAllocReq/hasExtraDstRegAllocReq in the machine opcode
432 /// description. Operands belonging to instructions with opcodes that are
433 /// marked hasExtraSrcRegAllocReq/hasExtraDstRegAllocReq return false from
434 /// isRenamable(). Additionally, the AllowRegisterRenaming target property
435 /// prevents any operands from being marked renamable for targets that don't
436 /// have detailed opcode hasExtraSrcRegAllocReq/hasExtraDstRegAllocReq
437 /// values.
438boolisRenamable()const;
439
440boolisInternalRead() const{
441assert(isReg() &&"Wrong MachineOperand accessor");
442return IsInternalRead;
443 }
444
445boolisEarlyClobber() const{
446assert(isReg() &&"Wrong MachineOperand accessor");
447return IsEarlyClobber;
448 }
449
450boolisTied() const{
451assert(isReg() &&"Wrong MachineOperand accessor");
452return TiedTo;
453 }
454
455boolisDebug() const{
456assert(isReg() &&"Wrong MachineOperand accessor");
457return IsDebug;
458 }
459
460 /// readsReg - Returns true if this operand reads the previous value of its
461 /// register. A use operand with the <undef> flag set doesn't read its
462 /// register. A sub-register def implicitly reads the other parts of the
463 /// register being redefined unless the <undef> flag is set.
464 ///
465 /// This refers to reading the register value from before the current
466 /// instruction or bundle. Internal bundle reads are not included.
467boolreadsReg() const{
468assert(isReg() &&"Wrong MachineOperand accessor");
469return !isUndef() && !isInternalRead() && (isUse() ||getSubReg());
470 }
471
472 /// Return true if this operand can validly be appended to an arbitrary
473 /// operand list. i.e. this behaves like an implicit operand.
474boolisValidExcessOperand() const{
475if ((isReg() &&isImplicit()) ||isRegMask())
476returntrue;
477
478// Debug operands
479returnisMetadata() ||isMCSymbol();
480 }
481
482//===--------------------------------------------------------------------===//
483// Mutators for Register Operands
484//===--------------------------------------------------------------------===//
485
486 /// Change the register this operand corresponds to.
487 ///
488voidsetReg(RegisterReg);
489
490voidsetSubReg(unsigned subReg) {
491assert(isReg() &&"Wrong MachineOperand mutator");
492 SubReg_TargetFlags = subReg;
493assert(SubReg_TargetFlags == subReg &&"SubReg out of range");
494 }
495
496 /// substVirtReg - Substitute the current register with the virtual
497 /// subregister Reg:SubReg. Take any existing SubReg index into account,
498 /// using TargetRegisterInfo to compose the subreg indices if necessary.
499 /// Reg must be a virtual register, SubIdx can be 0.
500 ///
501voidsubstVirtReg(RegisterReg,unsigned SubIdx,constTargetRegisterInfo&);
502
503 /// substPhysReg - Substitute the current register with the physical register
504 /// Reg, taking any existing SubReg into account. For instance,
505 /// substPhysReg(%eax) will change %reg1024:sub_8bit to %al.
506 ///
507voidsubstPhysReg(MCRegisterReg,constTargetRegisterInfo&);
508
509voidsetIsUse(bool Val =true) {setIsDef(!Val); }
510
511 /// Change a def to a use, or a use to a def.
512voidsetIsDef(bool Val =true);
513
514voidsetImplicit(bool Val =true) {
515assert(isReg() &&"Wrong MachineOperand mutator");
516 IsImp = Val;
517 }
518
519voidsetIsKill(bool Val =true) {
520assert(isReg() && !IsDef &&"Wrong MachineOperand mutator");
521assert((!Val || !isDebug()) &&"Marking a debug operation as kill");
522 IsDeadOrKill = Val;
523 }
524
525voidsetIsDead(bool Val =true) {
526assert(isReg() && IsDef &&"Wrong MachineOperand mutator");
527 IsDeadOrKill = Val;
528 }
529
530voidsetIsUndef(bool Val =true) {
531assert(isReg() &&"Wrong MachineOperand mutator");
532 IsUndef = Val;
533 }
534
535voidsetIsRenamable(bool Val =true);
536
537voidsetIsInternalRead(bool Val =true) {
538assert(isReg() &&"Wrong MachineOperand mutator");
539 IsInternalRead = Val;
540 }
541
542voidsetIsEarlyClobber(bool Val =true) {
543assert(isReg() && IsDef &&"Wrong MachineOperand mutator");
544 IsEarlyClobber = Val;
545 }
546
547voidsetIsDebug(bool Val =true) {
548assert(isReg() && !IsDef &&"Wrong MachineOperand mutator");
549 IsDebug = Val;
550 }
551
552//===--------------------------------------------------------------------===//
553// Accessors for various operand types.
554//===--------------------------------------------------------------------===//
555
556 int64_tgetImm() const{
557assert(isImm() &&"Wrong MachineOperand accessor");
558return Contents.ImmVal;
559 }
560
561constConstantInt *getCImm() const{
562assert(isCImm() &&"Wrong MachineOperand accessor");
563return Contents.CI;
564 }
565
566constConstantFP *getFPImm() const{
567assert(isFPImm() &&"Wrong MachineOperand accessor");
568return Contents.CFP;
569 }
570
571MachineBasicBlock *getMBB() const{
572assert(isMBB() &&"Wrong MachineOperand accessor");
573return Contents.MBB;
574 }
575
576intgetIndex() const{
577assert((isFI() ||isCPI() ||isTargetIndex() ||isJTI()) &&
578"Wrong MachineOperand accessor");
579return Contents.OffsetedInfo.Val.Index;
580 }
581
582constGlobalValue *getGlobal() const{
583assert(isGlobal() &&"Wrong MachineOperand accessor");
584return Contents.OffsetedInfo.Val.GV;
585 }
586
587constBlockAddress *getBlockAddress() const{
588assert(isBlockAddress() &&"Wrong MachineOperand accessor");
589return Contents.OffsetedInfo.Val.BA;
590 }
591
592MCSymbol *getMCSymbol() const{
593assert(isMCSymbol() &&"Wrong MachineOperand accessor");
594return Contents.Sym;
595 }
596
597unsignedgetInstrRefInstrIndex() const{
598assert(isDbgInstrRef() &&"Wrong MachineOperand accessor");
599return Contents.InstrRef.InstrIdx;
600 }
601
602unsignedgetInstrRefOpIndex() const{
603assert(isDbgInstrRef() &&"Wrong MachineOperand accessor");
604return Contents.InstrRef.OpIdx;
605 }
606
607unsignedgetCFIIndex() const{
608assert(isCFIIndex() &&"Wrong MachineOperand accessor");
609return Contents.CFIIndex;
610 }
611
612Intrinsic::IDgetIntrinsicID() const{
613assert(isIntrinsicID() &&"Wrong MachineOperand accessor");
614return Contents.IntrinsicID;
615 }
616
617unsignedgetPredicate() const{
618assert(isPredicate() &&"Wrong MachineOperand accessor");
619return Contents.Pred;
620 }
621
622ArrayRef<int>getShuffleMask() const{
623assert(isShuffleMask() &&"Wrong MachineOperand accessor");
624return Contents.ShuffleMask;
625 }
626
627 /// Return the offset from the symbol in this operand. This always returns 0
628 /// for ExternalSymbol operands.
629 int64_tgetOffset() const{
630assert((isGlobal() ||isSymbol() ||isMCSymbol() ||isCPI() ||
631isTargetIndex() ||isBlockAddress()) &&
632"Wrong MachineOperand accessor");
633return int64_t(uint64_t(Contents.OffsetedInfo.OffsetHi) << 32) |
634 SmallContents.OffsetLo;
635 }
636
637constchar *getSymbolName() const{
638assert(isSymbol() &&"Wrong MachineOperand accessor");
639return Contents.OffsetedInfo.Val.SymbolName;
640 }
641
642 /// clobbersPhysReg - Returns true if this RegMask clobbers PhysReg.
643 /// It is sometimes necessary to detach the register mask pointer from its
644 /// machine operand. This static method can be used for such detached bit
645 /// mask pointers.
646staticboolclobbersPhysReg(constuint32_t *RegMask,MCRegister PhysReg) {
647// See TargetRegisterInfo.h.
648assert((!PhysReg.isValid() || PhysReg.isPhysical()) &&
649"Not a physical register");
650return !(RegMask[PhysReg.id() / 32] & (1u << PhysReg.id() % 32));
651 }
652
653 /// clobbersPhysReg - Returns true if this RegMask operand clobbers PhysReg.
654boolclobbersPhysReg(MCRegister PhysReg) const{
655returnclobbersPhysReg(getRegMask(), PhysReg);
656 }
657
658 /// getRegMask - Returns a bit mask of registers preserved by this RegMask
659 /// operand.
660constuint32_t *getRegMask() const{
661assert(isRegMask() &&"Wrong MachineOperand accessor");
662return Contents.RegMask;
663 }
664
665 /// Returns number of elements needed for a regmask array.
666staticunsignedgetRegMaskSize(unsigned NumRegs) {
667return (NumRegs + 31) / 32;
668 }
669
670 /// getRegLiveOut - Returns a bit mask of live-out registers.
671constuint32_t *getRegLiveOut() const{
672assert(isRegLiveOut() &&"Wrong MachineOperand accessor");
673return Contents.RegMask;
674 }
675
676constMDNode *getMetadata() const{
677assert(isMetadata() &&"Wrong MachineOperand accessor");
678return Contents.MD;
679 }
680
681//===--------------------------------------------------------------------===//
682// Mutators for various operand types.
683//===--------------------------------------------------------------------===//
684
685voidsetImm(int64_t immVal) {
686assert(isImm() &&"Wrong MachineOperand mutator");
687 Contents.ImmVal = immVal;
688 }
689
690voidsetCImm(constConstantInt *CI) {
691assert(isCImm() &&"Wrong MachineOperand mutator");
692 Contents.CI = CI;
693 }
694
695voidsetFPImm(constConstantFP *CFP) {
696assert(isFPImm() &&"Wrong MachineOperand mutator");
697 Contents.CFP = CFP;
698 }
699
700voidsetOffset(int64_tOffset) {
701assert((isGlobal() ||isSymbol() ||isMCSymbol() ||isCPI() ||
702isTargetIndex() ||isBlockAddress()) &&
703"Wrong MachineOperand mutator");
704 SmallContents.OffsetLo =unsigned(Offset);
705 Contents.OffsetedInfo.OffsetHi = int(Offset >> 32);
706 }
707
708voidsetIndex(intIdx) {
709assert((isFI() ||isCPI() ||isTargetIndex() ||isJTI()) &&
710"Wrong MachineOperand mutator");
711 Contents.OffsetedInfo.Val.Index =Idx;
712 }
713
714voidsetMetadata(constMDNode *MD) {
715assert(isMetadata() &&"Wrong MachineOperand mutator");
716 Contents.MD = MD;
717 }
718
719voidsetInstrRefInstrIndex(unsigned InstrIdx) {
720assert(isDbgInstrRef() &&"Wrong MachineOperand mutator");
721 Contents.InstrRef.InstrIdx = InstrIdx;
722 }
723voidsetInstrRefOpIndex(unsigned OpIdx) {
724assert(isDbgInstrRef() &&"Wrong MachineOperand mutator");
725 Contents.InstrRef.OpIdx = OpIdx;
726 }
727
728voidsetMBB(MachineBasicBlock *MBB) {
729assert(isMBB() &&"Wrong MachineOperand mutator");
730 Contents.MBB =MBB;
731 }
732
733 /// Sets value of register mask operand referencing Mask. The
734 /// operand does not take ownership of the memory referenced by Mask, it must
735 /// remain valid for the lifetime of the operand. See CreateRegMask().
736 /// Any physreg with a 0 bit in the mask is clobbered by the instruction.
737voidsetRegMask(constuint32_t *RegMaskPtr) {
738assert(isRegMask() &&"Wrong MachineOperand mutator");
739 Contents.RegMask = RegMaskPtr;
740 }
741
742voidsetIntrinsicID(Intrinsic::ID IID) {
743assert(isIntrinsicID() &&"Wrong MachineOperand mutator");
744 Contents.IntrinsicID = IID;
745 }
746
747voidsetPredicate(unsignedPredicate) {
748assert(isPredicate() &&"Wrong MachineOperand mutator");
749 Contents.Pred =Predicate;
750 }
751
752//===--------------------------------------------------------------------===//
753// Other methods.
754//===--------------------------------------------------------------------===//
755
756 /// Returns true if this operand is identical to the specified operand except
757 /// for liveness related flags (isKill, isUndef and isDead). Note that this
758 /// should stay in sync with the hash_value overload below.
759boolisIdenticalTo(constMachineOperand &Other)const;
760
761 /// MachineOperand hash_value overload.
762 ///
763 /// Note that this includes the same information in the hash that
764 /// isIdenticalTo uses for comparison. It is thus suited for use in hash
765 /// tables which use that function for equality comparisons only. This must
766 /// stay exactly in sync with isIdenticalTo above.
767friendhash_codehash_value(constMachineOperand &MO);
768
769 /// ChangeToImmediate - Replace this operand with a new immediate operand of
770 /// the specified value. If an operand is known to be an immediate already,
771 /// the setImm method should be used.
772voidChangeToImmediate(int64_t ImmVal,unsigned TargetFlags = 0);
773
774 /// ChangeToFPImmediate - Replace this operand with a new FP immediate operand
775 /// of the specified value. If an operand is known to be an FP immediate
776 /// already, the setFPImm method should be used.
777voidChangeToFPImmediate(constConstantFP *FPImm,unsigned TargetFlags = 0);
778
779 /// ChangeToES - Replace this operand with a new external symbol operand.
780voidChangeToES(constchar *SymName,unsigned TargetFlags = 0);
781
782 /// ChangeToGA - Replace this operand with a new global address operand.
783voidChangeToGA(constGlobalValue *GV, int64_tOffset,
784unsigned TargetFlags = 0);
785
786 /// ChangeToBA - Replace this operand with a new block address operand.
787voidChangeToBA(constBlockAddress *BA, int64_tOffset,
788unsigned TargetFlags = 0);
789
790 /// ChangeToMCSymbol - Replace this operand with a new MC symbol operand.
791voidChangeToMCSymbol(MCSymbol *Sym,unsigned TargetFlags = 0);
792
793 /// Replace this operand with a frame index.
794voidChangeToFrameIndex(intIdx,unsigned TargetFlags = 0);
795
796 /// Replace this operand with a target index.
797voidChangeToTargetIndex(unsignedIdx, int64_tOffset,
798unsigned TargetFlags = 0);
799
800 /// Replace this operand with an Instruction Reference.
801voidChangeToDbgInstrRef(unsigned InstrIdx,unsigned OpIdx,
802unsigned TargetFlags = 0);
803
804 /// ChangeToRegister - Replace this operand with a new register operand of
805 /// the specified value. If an operand is known to be an register already,
806 /// the setReg method should be used.
807voidChangeToRegister(RegisterReg,boolisDef,bool isImp =false,
808boolisKill =false,boolisDead =false,
809boolisUndef =false,boolisDebug =false);
810
811 /// getTargetIndexName - If this MachineOperand is a TargetIndex that has a
812 /// name, attempt to get the name. Returns nullptr if the TargetIndex does not
813 /// have a name. Asserts if MO is not a TargetIndex.
814constchar *getTargetIndexName()const;
815
816//===--------------------------------------------------------------------===//
817// Construction methods.
818//===--------------------------------------------------------------------===//
819
820staticMachineOperandCreateImm(int64_t Val) {
821MachineOperandOp(MachineOperand::MO_Immediate);
822Op.setImm(Val);
823returnOp;
824 }
825
826staticMachineOperandCreateCImm(constConstantInt *CI) {
827MachineOperandOp(MachineOperand::MO_CImmediate);
828Op.Contents.CI = CI;
829returnOp;
830 }
831
832staticMachineOperandCreateFPImm(constConstantFP *CFP) {
833MachineOperandOp(MachineOperand::MO_FPImmediate);
834Op.Contents.CFP = CFP;
835returnOp;
836 }
837
838staticMachineOperandCreateReg(RegisterReg,boolisDef,bool isImp =false,
839boolisKill =false,boolisDead =false,
840boolisUndef =false,
841boolisEarlyClobber =false,
842unsignedSubReg = 0,boolisDebug =false,
843boolisInternalRead =false,
844boolisRenamable =false) {
845assert(!(isDead && !isDef) &&"Dead flag on non-def");
846assert(!(isKill &&isDef) &&"Kill flag on def");
847MachineOperandOp(MachineOperand::MO_Register);
848Op.IsDef =isDef;
849Op.IsImp = isImp;
850Op.IsDeadOrKill =isKill |isDead;
851Op.IsRenamable =isRenamable;
852Op.IsUndef =isUndef;
853Op.IsInternalRead =isInternalRead;
854Op.IsEarlyClobber =isEarlyClobber;
855Op.TiedTo = 0;
856Op.IsDebug =isDebug;
857Op.SmallContents.RegNo =Reg.id();
858Op.Contents.Reg.Prev =nullptr;
859Op.Contents.Reg.Next =nullptr;
860Op.setSubReg(SubReg);
861returnOp;
862 }
863staticMachineOperandCreateMBB(MachineBasicBlock *MBB,
864unsigned TargetFlags = 0) {
865MachineOperandOp(MachineOperand::MO_MachineBasicBlock);
866Op.setMBB(MBB);
867Op.setTargetFlags(TargetFlags);
868returnOp;
869 }
870staticMachineOperandCreateFI(intIdx) {
871MachineOperandOp(MachineOperand::MO_FrameIndex);
872Op.setIndex(Idx);
873returnOp;
874 }
875staticMachineOperandCreateCPI(unsignedIdx,intOffset,
876unsigned TargetFlags = 0) {
877MachineOperandOp(MachineOperand::MO_ConstantPoolIndex);
878Op.setIndex(Idx);
879Op.setOffset(Offset);
880Op.setTargetFlags(TargetFlags);
881returnOp;
882 }
883staticMachineOperandCreateTargetIndex(unsignedIdx, int64_tOffset,
884unsigned TargetFlags = 0) {
885MachineOperandOp(MachineOperand::MO_TargetIndex);
886Op.setIndex(Idx);
887Op.setOffset(Offset);
888Op.setTargetFlags(TargetFlags);
889returnOp;
890 }
891staticMachineOperandCreateJTI(unsignedIdx,unsigned TargetFlags = 0) {
892MachineOperandOp(MachineOperand::MO_JumpTableIndex);
893Op.setIndex(Idx);
894Op.setTargetFlags(TargetFlags);
895returnOp;
896 }
897staticMachineOperandCreateGA(constGlobalValue *GV, int64_tOffset,
898unsigned TargetFlags = 0) {
899MachineOperandOp(MachineOperand::MO_GlobalAddress);
900Op.Contents.OffsetedInfo.Val.GV = GV;
901Op.setOffset(Offset);
902Op.setTargetFlags(TargetFlags);
903returnOp;
904 }
905staticMachineOperandCreateES(constchar *SymName,
906unsigned TargetFlags = 0) {
907MachineOperandOp(MachineOperand::MO_ExternalSymbol);
908Op.Contents.OffsetedInfo.Val.SymbolName = SymName;
909Op.setOffset(0);// Offset is always 0.
910Op.setTargetFlags(TargetFlags);
911returnOp;
912 }
913staticMachineOperandCreateBA(constBlockAddress *BA, int64_tOffset,
914unsigned TargetFlags = 0) {
915MachineOperandOp(MachineOperand::MO_BlockAddress);
916Op.Contents.OffsetedInfo.Val.BA = BA;
917Op.setOffset(Offset);
918Op.setTargetFlags(TargetFlags);
919returnOp;
920 }
921 /// CreateRegMask - Creates a register mask operand referencing Mask. The
922 /// operand does not take ownership of the memory referenced by Mask, it
923 /// must remain valid for the lifetime of the operand.
924 ///
925 /// A RegMask operand represents a set of non-clobbered physical registers
926 /// on an instruction that clobbers many registers, typically a call. The
927 /// bit mask has a bit set for each physreg that is preserved by this
928 /// instruction, as described in the documentation for
929 /// TargetRegisterInfo::getCallPreservedMask().
930 ///
931 /// Any physreg with a 0 bit in the mask is clobbered by the instruction.
932 ///
933staticMachineOperandCreateRegMask(constuint32_t *Mask) {
934assert(Mask &&"Missing register mask");
935MachineOperandOp(MachineOperand::MO_RegisterMask);
936Op.Contents.RegMask = Mask;
937returnOp;
938 }
939staticMachineOperandCreateRegLiveOut(constuint32_t *Mask) {
940assert(Mask &&"Missing live-out register mask");
941MachineOperandOp(MachineOperand::MO_RegisterLiveOut);
942Op.Contents.RegMask = Mask;
943returnOp;
944 }
945staticMachineOperandCreateMetadata(constMDNode *Meta) {
946MachineOperandOp(MachineOperand::MO_Metadata);
947Op.Contents.MD = Meta;
948returnOp;
949 }
950
951staticMachineOperandCreateMCSymbol(MCSymbol *Sym,
952unsigned TargetFlags = 0) {
953MachineOperandOp(MachineOperand::MO_MCSymbol);
954Op.Contents.Sym =Sym;
955Op.setOffset(0);
956Op.setTargetFlags(TargetFlags);
957returnOp;
958 }
959
960staticMachineOperandCreateDbgInstrRef(unsigned InstrIdx,unsigned OpIdx) {
961MachineOperandOp(MachineOperand::MO_DbgInstrRef);
962Op.Contents.InstrRef.InstrIdx = InstrIdx;
963Op.Contents.InstrRef.OpIdx = OpIdx;
964returnOp;
965 }
966
967staticMachineOperandCreateCFIIndex(unsigned CFIIndex) {
968MachineOperandOp(MachineOperand::MO_CFIIndex);
969Op.Contents.CFIIndex = CFIIndex;
970returnOp;
971 }
972
973staticMachineOperandCreateIntrinsicID(Intrinsic::IDID) {
974MachineOperandOp(MachineOperand::MO_IntrinsicID);
975Op.Contents.IntrinsicID =ID;
976returnOp;
977 }
978
979staticMachineOperandCreatePredicate(unsigned Pred) {
980MachineOperandOp(MachineOperand::MO_Predicate);
981Op.Contents.Pred = Pred;
982returnOp;
983 }
984
985staticMachineOperandCreateShuffleMask(ArrayRef<int> Mask) {
986MachineOperandOp(MachineOperand::MO_ShuffleMask);
987Op.Contents.ShuffleMask = Mask;
988returnOp;
989 }
990
991friendclassMachineInstr;
992friendclassMachineRegisterInfo;
993
994private:
995// If this operand is currently a register operand, and if this is in a
996// function, deregister the operand from the register's use/def list.
997void removeRegFromUses();
998
999 /// Artificial kinds for DenseMap usage.
1000 enum :unsignedchar {
1001 MO_Empty =MO_Last + 1,
1002 MO_Tombstone,
1003 };
1004
1005friendstructDenseMapInfo<MachineOperand>;
1006
1007//===--------------------------------------------------------------------===//
1008// Methods for handling register use/def lists.
1009//===--------------------------------------------------------------------===//
1010
1011 /// isOnRegUseList - Return true if this operand is on a register use/def
1012 /// list or false if not. This can only be called for register operands
1013 /// that are part of a machine instruction.
1014bool isOnRegUseList() const{
1015assert(isReg() &&"Can only add reg operand to use lists");
1016return Contents.Reg.Prev !=nullptr;
1017 }
1018};
1019
1020template <>structDenseMapInfo<MachineOperand> {
1021staticMachineOperandgetEmptyKey() {
1022returnMachineOperand(static_cast<MachineOperand::MachineOperandType>(
1023 MachineOperand::MO_Empty));
1024 }
1025staticMachineOperandgetTombstoneKey() {
1026returnMachineOperand(static_cast<MachineOperand::MachineOperandType>(
1027 MachineOperand::MO_Tombstone));
1028 }
1029staticunsignedgetHashValue(constMachineOperand &MO) {
1030returnhash_value(MO);
1031 }
1032staticboolisEqual(constMachineOperand &LHS,constMachineOperand &RHS) {
1033if (LHS.getType() ==static_cast<MachineOperand::MachineOperandType>(
1034 MachineOperand::MO_Empty) ||
1035LHS.getType() ==static_cast<MachineOperand::MachineOperandType>(
1036 MachineOperand::MO_Tombstone))
1037returnLHS.getType() ==RHS.getType();
1038returnLHS.isIdenticalTo(RHS);
1039 }
1040};
1041
1042inlineraw_ostream &operator<<(raw_ostream &OS,constMachineOperand &MO) {
1043 MO.print(OS);
1044returnOS;
1045}
1046
1047// See friend declaration above. This additional declaration is required in
1048// order to compile LLVM with IBM xlC compiler.
1049hash_codehash_value(const MachineOperand &MO);
1050}// namespace llvm
1051
1052#endif
SubReg
unsigned SubReg
Definition:AArch64AdvSIMDScalarPass.cpp:104
MBB
MachineBasicBlock & MBB
Definition:ARMSLSHardening.cpp:71
Idx
Returns the sub type a function will return at a given Idx Should correspond to the result type of an ExtractValue instruction executed with just that one unsigned Idx
Definition:DeadArgumentElimination.cpp:353
DenseMapInfo.h
This file defines DenseMapInfo traits for DenseMap.
Name
std::string Name
Definition:ELFObjHandler.cpp:77
Index
uint32_t Index
Definition:ELFObjHandler.cpp:83
Sym
Symbol * Sym
Definition:ELF_riscv.cpp:479
Intrinsics.h
F
#define F(x, y, z)
Definition:MD5.cpp:55
TRI
unsigned const TargetRegisterInfo * TRI
Definition:MachineSink.cpp:2029
Reg
unsigned Reg
Definition:MachineSink.cpp:2028
Register.h
assert
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
OS
raw_pwrite_stream & OS
Definition:SampleProfWriter.cpp:51
RHS
Value * RHS
Definition:X86PartialReduction.cpp:74
LHS
Value * LHS
Definition:X86PartialReduction.cpp:73
Predicate
Definition:AMDGPURegBankLegalizeRules.cpp:332
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition:ArrayRef.h:41
llvm::BlockAddress
The address of a basic block.
Definition:Constants.h:893
llvm::ConstantFP
ConstantFP - Floating Point Values [float, double].
Definition:Constants.h:271
llvm::ConstantInt
This is the shared class of boolean and integer constants.
Definition:Constants.h:83
llvm::DWARFExpression::Operation
This class represents an Operation in the Expression.
Definition:DWARFExpression.h:32
llvm::GlobalValue
Definition:GlobalValue.h:48
llvm::LLT
Definition:LowLevelType.h:39
llvm::MCRegister
Wrapper class representing physical registers. Should be passed by value.
Definition:MCRegister.h:33
llvm::MCRegister::isValid
constexpr bool isValid() const
Definition:MCRegister.h:85
llvm::MCRegister::isPhysical
constexpr bool isPhysical() const
Return true if the specified register number is in the physical register namespace.
Definition:MCRegister.h:73
llvm::MCRegister::id
constexpr unsigned id() const
Definition:MCRegister.h:83
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:MCSymbol.h:41
llvm::MDNode
Metadata node.
Definition:Metadata.h:1073
llvm::MachineBasicBlock
Definition:MachineBasicBlock.h:125
llvm::MachineInstr
Representation of each machine instruction.
Definition:MachineInstr.h:71
llvm::MachineOperand
MachineOperand class - Representation of each machine instruction operand.
Definition:MachineOperand.h:48
llvm::MachineOperand::setSubReg
void setSubReg(unsigned subReg)
Definition:MachineOperand.h:490
llvm::MachineOperand::getSubReg
unsigned getSubReg() const
Definition:MachineOperand.h:374
llvm::MachineOperand::setIsUse
void setIsUse(bool Val=true)
Definition:MachineOperand.h:509
llvm::MachineOperand::CreateMCSymbol
static MachineOperand CreateMCSymbol(MCSymbol *Sym, unsigned TargetFlags=0)
Definition:MachineOperand.h:951
llvm::MachineOperand::getInstrRefOpIndex
unsigned getInstrRefOpIndex() const
Definition:MachineOperand.h:602
llvm::MachineOperand::setInstrRefInstrIndex
void setInstrRefInstrIndex(unsigned InstrIdx)
Definition:MachineOperand.h:719
llvm::MachineOperand::getOperandNo
unsigned getOperandNo() const
Returns the index of this operand in the instruction that it belongs to.
Definition:MachineOperand.cpp:56
llvm::MachineOperand::getGlobal
const GlobalValue * getGlobal() const
Definition:MachineOperand.h:582
llvm::MachineOperand::setImplicit
void setImplicit(bool Val=true)
Definition:MachineOperand.h:514
llvm::MachineOperand::isUndef
bool isUndef() const
Definition:MachineOperand.h:404
llvm::MachineOperand::setIsInternalRead
void setIsInternalRead(bool Val=true)
Definition:MachineOperand.h:537
llvm::MachineOperand::substVirtReg
void substVirtReg(Register Reg, unsigned SubIdx, const TargetRegisterInfo &)
substVirtReg - Substitute the current register with the virtual subregister Reg:SubReg.
Definition:MachineOperand.cpp:83
llvm::MachineOperand::ChangeToFrameIndex
void ChangeToFrameIndex(int Idx, unsigned TargetFlags=0)
Replace this operand with a frame index.
Definition:MachineOperand.cpp:233
llvm::MachineOperand::isMCSymbol
bool isMCSymbol() const
Definition:MachineOperand.h:358
llvm::MachineOperand::getRegLiveOut
const uint32_t * getRegLiveOut() const
getRegLiveOut - Returns a bit mask of live-out registers.
Definition:MachineOperand.h:671
llvm::MachineOperand::setInstrRefOpIndex
void setInstrRefOpIndex(unsigned OpIdx)
Definition:MachineOperand.h:723
llvm::MachineOperand::CreateES
static MachineOperand CreateES(const char *SymName, unsigned TargetFlags=0)
Definition:MachineOperand.h:905
llvm::MachineOperand::getCImm
const ConstantInt * getCImm() const
Definition:MachineOperand.h:561
llvm::MachineOperand::getTargetIndexName
const char * getTargetIndexName() const
getTargetIndexName - If this MachineOperand is a TargetIndex that has a name, attempt to get the name...
Definition:MachineOperand.cpp:476
llvm::MachineOperand::printStackObjectReference
static void printStackObjectReference(raw_ostream &OS, unsigned FrameIndex, bool IsFixed, StringRef Name)
Print a stack object reference.
Definition:MachineOperand.cpp:634
llvm::MachineOperand::printSubRegIdx
static void printSubRegIdx(raw_ostream &OS, uint64_t Index, const TargetRegisterInfo *TRI)
Print a subreg index operand.
Definition:MachineOperand.cpp:569
llvm::MachineOperand::CreateFPImm
static MachineOperand CreateFPImm(const ConstantFP *CFP)
Definition:MachineOperand.h:832
llvm::MachineOperand::setImm
void setImm(int64_t immVal)
Definition:MachineOperand.h:685
llvm::MachineOperand::isCImm
bool isCImm() const
isCImm - Test if this is a MO_CImmediate operand.
Definition:MachineOperand.h:333
llvm::MachineOperand::setRegMask
void setRegMask(const uint32_t *RegMaskPtr)
Sets value of register mask operand referencing Mask.
Definition:MachineOperand.h:737
llvm::MachineOperand::getImm
int64_t getImm() const
Definition:MachineOperand.h:556
llvm::MachineOperand::getInstrRefInstrIndex
unsigned getInstrRefInstrIndex() const
Definition:MachineOperand.h:597
llvm::MachineOperand::printTargetFlags
static void printTargetFlags(raw_ostream &OS, const MachineOperand &Op)
Print operand target flags.
Definition:MachineOperand.cpp:578
llvm::MachineOperand::readsReg
bool readsReg() const
readsReg - Returns true if this operand reads the previous value of its register.
Definition:MachineOperand.h:467
llvm::MachineOperand::isImplicit
bool isImplicit() const
Definition:MachineOperand.h:389
llvm::MachineOperand::CreateCFIIndex
static MachineOperand CreateCFIIndex(unsigned CFIIndex)
Definition:MachineOperand.h:967
llvm::MachineOperand::setFPImm
void setFPImm(const ConstantFP *CFP)
Definition:MachineOperand.h:695
llvm::MachineOperand::isPredicate
bool isPredicate() const
Definition:MachineOperand.h:362
llvm::MachineOperand::isKill
bool isKill() const
Definition:MachineOperand.h:399
llvm::MachineOperand::ChangeToFPImmediate
void ChangeToFPImmediate(const ConstantFP *FPImm, unsigned TargetFlags=0)
ChangeToFPImmediate - Replace this operand with a new FP immediate operand of the specified value.
Definition:MachineOperand.cpp:172
llvm::MachineOperand::isIntrinsicID
bool isIntrinsicID() const
Definition:MachineOperand.h:361
llvm::MachineOperand::setIsRenamable
void setIsRenamable(bool Val=true)
Definition:MachineOperand.cpp:142
llvm::MachineOperand::CreateRegMask
static MachineOperand CreateRegMask(const uint32_t *Mask)
CreateRegMask - Creates a register mask operand referencing Mask.
Definition:MachineOperand.h:933
llvm::MachineOperand::isReg
bool isReg() const
isReg - Tests if this is a MO_Register operand.
Definition:MachineOperand.h:329
llvm::MachineOperand::isRegMask
bool isRegMask() const
isRegMask - Tests if this is a MO_RegisterMask operand.
Definition:MachineOperand.h:353
llvm::MachineOperand::getMetadata
const MDNode * getMetadata() const
Definition:MachineOperand.h:676
llvm::MachineOperand::getMBB
MachineBasicBlock * getMBB() const
Definition:MachineOperand.h:571
llvm::MachineOperand::isCPI
bool isCPI() const
isCPI - Tests if this is a MO_ConstantPoolIndex operand.
Definition:MachineOperand.h:341
llvm::MachineOperand::hash_value
friend hash_code hash_value(const MachineOperand &MO)
MachineOperand hash_value overload.
llvm::MachineOperand::CreateCImm
static MachineOperand CreateCImm(const ConstantInt *CI)
Definition:MachineOperand.h:826
llvm::MachineOperand::setIsDead
void setIsDead(bool Val=true)
Definition:MachineOperand.h:525
llvm::MachineOperand::getShuffleMask
ArrayRef< int > getShuffleMask() const
Definition:MachineOperand.h:622
llvm::MachineOperand::ChangeToMCSymbol
void ChangeToMCSymbol(MCSymbol *Sym, unsigned TargetFlags=0)
ChangeToMCSymbol - Replace this operand with a new MC symbol operand.
Definition:MachineOperand.cpp:222
llvm::MachineOperand::ChangeToTargetIndex
void ChangeToTargetIndex(unsigned Idx, int64_t Offset, unsigned TargetFlags=0)
Replace this operand with a target index.
Definition:MachineOperand.cpp:244
llvm::MachineOperand::setReg
void setReg(Register Reg)
Change the register this operand corresponds to.
Definition:MachineOperand.cpp:61
llvm::MachineOperand::isUse
bool isUse() const
Definition:MachineOperand.h:379
llvm::MachineOperand::setMetadata
void setMetadata(const MDNode *MD)
Definition:MachineOperand.h:714
llvm::MachineOperand::dump
void dump() const
Definition:MachineOperand.cpp:1037
llvm::MachineOperand::isDef
bool isDef() const
Definition:MachineOperand.h:384
llvm::MachineOperand::isImm
bool isImm() const
isImm - Tests if this is a MO_Immediate operand.
Definition:MachineOperand.h:331
llvm::MachineOperand::isValidExcessOperand
bool isValidExcessOperand() const
Return true if this operand can validly be appended to an arbitrary operand list.
Definition:MachineOperand.h:474
llvm::MachineOperand::ChangeToImmediate
void ChangeToImmediate(int64_t ImmVal, unsigned TargetFlags=0)
ChangeToImmediate - Replace this operand with a new immediate operand of the specified value.
Definition:MachineOperand.cpp:162
llvm::MachineOperand::isMetadata
bool isMetadata() const
isMetadata - Tests if this is a MO_Metadata operand.
Definition:MachineOperand.h:357
llvm::MachineOperand::clobbersPhysReg
bool clobbersPhysReg(MCRegister PhysReg) const
clobbersPhysReg - Returns true if this RegMask operand clobbers PhysReg.
Definition:MachineOperand.h:654
llvm::MachineOperand::isSymbol
bool isSymbol() const
isSymbol - Tests if this is a MO_ExternalSymbol operand.
Definition:MachineOperand.h:349
llvm::MachineOperand::ChangeToES
void ChangeToES(const char *SymName, unsigned TargetFlags=0)
ChangeToES - Replace this operand with a new external symbol operand.
Definition:MachineOperand.cpp:183
llvm::MachineOperand::clearParent
void clearParent()
clearParent - Reset the parent pointer.
Definition:MachineOperand.h:254
llvm::MachineOperand::isShuffleMask
bool isShuffleMask() const
Definition:MachineOperand.h:363
llvm::MachineOperand::ChangeToGA
void ChangeToGA(const GlobalValue *GV, int64_t Offset, unsigned TargetFlags=0)
ChangeToGA - Replace this operand with a new global address operand.
Definition:MachineOperand.cpp:196
llvm::MachineOperand::getCFIIndex
unsigned getCFIIndex() const
Definition:MachineOperand.h:607
llvm::MachineOperand::isTied
bool isTied() const
Definition:MachineOperand.h:450
llvm::MachineOperand::setIsKill
void setIsKill(bool Val=true)
Definition:MachineOperand.h:519
llvm::MachineOperand::isRenamable
bool isRenamable() const
isRenamable - Returns true if this register may be renamed, i.e.
Definition:MachineOperand.cpp:124
llvm::MachineOperand::ChangeToBA
void ChangeToBA(const BlockAddress *BA, int64_t Offset, unsigned TargetFlags=0)
ChangeToBA - Replace this operand with a new block address operand.
Definition:MachineOperand.cpp:209
llvm::MachineOperand::isJTI
bool isJTI() const
isJTI - Tests if this is a MO_JumpTableIndex operand.
Definition:MachineOperand.h:345
llvm::MachineOperand::CreateMetadata
static MachineOperand CreateMetadata(const MDNode *Meta)
Definition:MachineOperand.h:945
llvm::MachineOperand::printOperandOffset
static void printOperandOffset(raw_ostream &OS, int64_t Offset)
Print the offset with explicit +/- signs.
Definition:MachineOperand.cpp:647
llvm::MachineOperand::ChangeToDbgInstrRef
void ChangeToDbgInstrRef(unsigned InstrIdx, unsigned OpIdx, unsigned TargetFlags=0)
Replace this operand with an Instruction Reference.
Definition:MachineOperand.cpp:257
llvm::MachineOperand::ChangeToRegister
void ChangeToRegister(Register Reg, bool isDef, bool isImp=false, bool isKill=false, bool isDead=false, bool isUndef=false, bool isDebug=false)
ChangeToRegister - Replace this operand with a new register operand of the specified value.
Definition:MachineOperand.cpp:273
llvm::MachineOperand::getBlockAddress
const BlockAddress * getBlockAddress() const
Definition:MachineOperand.h:587
llvm::MachineOperand::getParent
MachineInstr * getParent()
getParent - Return the instruction that this operand belongs to.
Definition:MachineOperand.h:243
llvm::MachineOperand::substPhysReg
void substPhysReg(MCRegister Reg, const TargetRegisterInfo &)
substPhysReg - Substitute the current register with the physical register Reg, taking any existing Su...
Definition:MachineOperand.cpp:93
llvm::MachineOperand::CreatePredicate
static MachineOperand CreatePredicate(unsigned Pred)
Definition:MachineOperand.h:979
llvm::MachineOperand::setMBB
void setMBB(MachineBasicBlock *MBB)
Definition:MachineOperand.h:728
llvm::MachineOperand::isRegLiveOut
bool isRegLiveOut() const
isRegLiveOut - Tests if this is a MO_RegisterLiveOut operand.
Definition:MachineOperand.h:355
llvm::MachineOperand::setIsEarlyClobber
void setIsEarlyClobber(bool Val=true)
Definition:MachineOperand.h:542
llvm::MachineOperand::getRegMaskSize
static unsigned getRegMaskSize(unsigned NumRegs)
Returns number of elements needed for a regmask array.
Definition:MachineOperand.h:666
llvm::MachineOperand::setOffset
void setOffset(int64_t Offset)
Definition:MachineOperand.h:700
llvm::MachineOperand::isDebug
bool isDebug() const
Definition:MachineOperand.h:455
llvm::MachineOperand::getIndex
int getIndex() const
Definition:MachineOperand.h:576
llvm::MachineOperand::setCImm
void setCImm(const ConstantInt *CI)
Definition:MachineOperand.h:690
llvm::MachineOperand::isDead
bool isDead() const
Definition:MachineOperand.h:394
llvm::MachineOperand::printIRSlotNumber
static void printIRSlotNumber(raw_ostream &OS, int Slot)
Print an IRSlotNumber.
Definition:MachineOperand.cpp:657
llvm::MachineOperand::RegNo
unsigned RegNo
Definition:MachineOperand.h:159
llvm::MachineOperand::getTargetFlags
unsigned getTargetFlags() const
Definition:MachineOperand.h:226
llvm::MachineOperand::CreateImm
static MachineOperand CreateImm(int64_t Val)
Definition:MachineOperand.h:820
llvm::MachineOperand::isGlobal
bool isGlobal() const
isGlobal - Tests if this is a MO_GlobalAddress operand.
Definition:MachineOperand.h:347
llvm::MachineOperand::setPredicate
void setPredicate(unsigned Predicate)
Definition:MachineOperand.h:747
llvm::MachineOperand::CreateShuffleMask
static MachineOperand CreateShuffleMask(ArrayRef< int > Mask)
Definition:MachineOperand.h:985
llvm::MachineOperand::getType
MachineOperandType getType() const
getType - Returns the MachineOperandType for this operand.
Definition:MachineOperand.h:224
llvm::MachineOperand::CreateJTI
static MachineOperand CreateJTI(unsigned Idx, unsigned TargetFlags=0)
Definition:MachineOperand.h:891
llvm::MachineOperand::getSymbolName
const char * getSymbolName() const
Definition:MachineOperand.h:637
llvm::MachineOperand::CreateDbgInstrRef
static MachineOperand CreateDbgInstrRef(unsigned InstrIdx, unsigned OpIdx)
Definition:MachineOperand.h:960
llvm::MachineOperand::setIsUndef
void setIsUndef(bool Val=true)
Definition:MachineOperand.h:530
llvm::MachineOperand::setIsDebug
void setIsDebug(bool Val=true)
Definition:MachineOperand.h:547
llvm::MachineOperand::isEarlyClobber
bool isEarlyClobber() const
Definition:MachineOperand.h:445
llvm::MachineOperand::isCFIIndex
bool isCFIIndex() const
Definition:MachineOperand.h:360
llvm::MachineOperand::isBlockAddress
bool isBlockAddress() const
isBlockAddress - Tests if this is a MO_BlockAddress operand.
Definition:MachineOperand.h:351
llvm::MachineOperand::getReg
Register getReg() const
getReg - Returns the register number.
Definition:MachineOperand.h:369
llvm::MachineOperand::isTargetIndex
bool isTargetIndex() const
isTargetIndex - Tests if this is a MO_TargetIndex operand.
Definition:MachineOperand.h:343
llvm::MachineOperand::CreateRegLiveOut
static MachineOperand CreateRegLiveOut(const uint32_t *Mask)
Definition:MachineOperand.h:939
llvm::MachineOperand::CreateGA
static MachineOperand CreateGA(const GlobalValue *GV, int64_t Offset, unsigned TargetFlags=0)
Definition:MachineOperand.h:897
llvm::MachineOperand::setIntrinsicID
void setIntrinsicID(Intrinsic::ID IID)
Definition:MachineOperand.h:742
llvm::MachineOperand::addTargetFlag
void addTargetFlag(unsigned F)
Definition:MachineOperand.h:234
llvm::MachineOperand::isDbgInstrRef
bool isDbgInstrRef() const
Definition:MachineOperand.h:359
llvm::MachineOperand::getIntrinsicID
Intrinsic::ID getIntrinsicID() const
Definition:MachineOperand.h:612
llvm::MachineOperand::isInternalRead
bool isInternalRead() const
Definition:MachineOperand.h:440
llvm::MachineOperand::CreateBA
static MachineOperand CreateBA(const BlockAddress *BA, int64_t Offset, unsigned TargetFlags=0)
Definition:MachineOperand.h:913
llvm::MachineOperand::setTargetFlags
void setTargetFlags(unsigned F)
Definition:MachineOperand.h:229
llvm::MachineOperand::isFI
bool isFI() const
isFI - Tests if this is a MO_FrameIndex operand.
Definition:MachineOperand.h:339
llvm::MachineOperand::isIdenticalTo
bool isIdenticalTo(const MachineOperand &Other) const
Returns true if this operand is identical to the specified operand except for liveness related flags ...
Definition:MachineOperand.cpp:319
llvm::MachineOperand::OffsetLo
unsigned OffsetLo
Definition:MachineOperand.h:160
llvm::MachineOperand::clobbersPhysReg
static bool clobbersPhysReg(const uint32_t *RegMask, MCRegister PhysReg)
clobbersPhysReg - Returns true if this RegMask clobbers PhysReg.
Definition:MachineOperand.h:646
llvm::MachineOperand::getRegMask
const uint32_t * getRegMask() const
getRegMask - Returns a bit mask of registers preserved by this RegMask operand.
Definition:MachineOperand.h:660
llvm::MachineOperand::setIndex
void setIndex(int Idx)
Definition:MachineOperand.h:708
llvm::MachineOperand::CreateCPI
static MachineOperand CreateCPI(unsigned Idx, int Offset, unsigned TargetFlags=0)
Definition:MachineOperand.h:875
llvm::MachineOperand::setIsDef
void setIsDef(bool Val=true)
Change a def to a use, or a use to a def.
Definition:MachineOperand.cpp:107
llvm::MachineOperand::print
void print(raw_ostream &os, const TargetRegisterInfo *TRI=nullptr, const TargetIntrinsicInfo *IntrinsicInfo=nullptr) const
Print the MachineOperand to os.
Definition:MachineOperand.cpp:784
llvm::MachineOperand::getFPImm
const ConstantFP * getFPImm() const
Definition:MachineOperand.h:566
llvm::MachineOperand::printSymbol
static void printSymbol(raw_ostream &OS, MCSymbol &Sym)
Print a MCSymbol as an operand.
Definition:MachineOperand.cpp:630
llvm::MachineOperand::getParent
const MachineInstr * getParent() const
Definition:MachineOperand.h:244
llvm::MachineOperand::getPredicate
unsigned getPredicate() const
Definition:MachineOperand.h:617
llvm::MachineOperand::getMCSymbol
MCSymbol * getMCSymbol() const
Definition:MachineOperand.h:592
llvm::MachineOperand::MachineOperandType
MachineOperandType
Definition:MachineOperand.h:50
llvm::MachineOperand::MO_CFIIndex
@ MO_CFIIndex
MCCFIInstruction index.
Definition:MachineOperand.h:67
llvm::MachineOperand::MO_Immediate
@ MO_Immediate
Immediate operand.
Definition:MachineOperand.h:52
llvm::MachineOperand::MO_ConstantPoolIndex
@ MO_ConstantPoolIndex
Address of indexed Constant in Constant Pool.
Definition:MachineOperand.h:57
llvm::MachineOperand::MO_MCSymbol
@ MO_MCSymbol
MCSymbol reference (for debug/eh info)
Definition:MachineOperand.h:66
llvm::MachineOperand::MO_Predicate
@ MO_Predicate
Generic predicate for ISel.
Definition:MachineOperand.h:69
llvm::MachineOperand::MO_GlobalAddress
@ MO_GlobalAddress
Address of a global value.
Definition:MachineOperand.h:61
llvm::MachineOperand::MO_RegisterMask
@ MO_RegisterMask
Mask of preserved registers.
Definition:MachineOperand.h:63
llvm::MachineOperand::MO_ShuffleMask
@ MO_ShuffleMask
Other IR Constant for ISel (shuffle masks)
Definition:MachineOperand.h:70
llvm::MachineOperand::MO_CImmediate
@ MO_CImmediate
Immediate >64bit operand.
Definition:MachineOperand.h:53
llvm::MachineOperand::MO_BlockAddress
@ MO_BlockAddress
Address of a basic block.
Definition:MachineOperand.h:62
llvm::MachineOperand::MO_DbgInstrRef
@ MO_DbgInstrRef
Integer indices referring to an instruction+operand.
Definition:MachineOperand.h:71
llvm::MachineOperand::MO_MachineBasicBlock
@ MO_MachineBasicBlock
MachineBasicBlock reference.
Definition:MachineOperand.h:55
llvm::MachineOperand::MO_FrameIndex
@ MO_FrameIndex
Abstract Stack Frame Index.
Definition:MachineOperand.h:56
llvm::MachineOperand::MO_Register
@ MO_Register
Register operand.
Definition:MachineOperand.h:51
llvm::MachineOperand::MO_ExternalSymbol
@ MO_ExternalSymbol
Name of external global symbol.
Definition:MachineOperand.h:60
llvm::MachineOperand::MO_IntrinsicID
@ MO_IntrinsicID
Intrinsic ID for ISel.
Definition:MachineOperand.h:68
llvm::MachineOperand::MO_JumpTableIndex
@ MO_JumpTableIndex
Address of indexed Jump Table for switch.
Definition:MachineOperand.h:59
llvm::MachineOperand::MO_Last
@ MO_Last
Definition:MachineOperand.h:72
llvm::MachineOperand::MO_TargetIndex
@ MO_TargetIndex
Target-dependent index+offset operand.
Definition:MachineOperand.h:58
llvm::MachineOperand::MO_Metadata
@ MO_Metadata
Metadata reference (for debug info)
Definition:MachineOperand.h:65
llvm::MachineOperand::MO_FPImmediate
@ MO_FPImmediate
Floating-point immediate operand.
Definition:MachineOperand.h:54
llvm::MachineOperand::MO_RegisterLiveOut
@ MO_RegisterLiveOut
Mask of live-out registers.
Definition:MachineOperand.h:64
llvm::MachineOperand::CreateReg
static MachineOperand CreateReg(Register Reg, bool isDef, bool isImp=false, bool isKill=false, bool isDead=false, bool isUndef=false, bool isEarlyClobber=false, unsigned SubReg=0, bool isDebug=false, bool isInternalRead=false, bool isRenamable=false)
Definition:MachineOperand.h:838
llvm::MachineOperand::CreateTargetIndex
static MachineOperand CreateTargetIndex(unsigned Idx, int64_t Offset, unsigned TargetFlags=0)
Definition:MachineOperand.h:883
llvm::MachineOperand::CreateMBB
static MachineOperand CreateMBB(MachineBasicBlock *MBB, unsigned TargetFlags=0)
Definition:MachineOperand.h:863
llvm::MachineOperand::getOffset
int64_t getOffset() const
Return the offset from the symbol in this operand.
Definition:MachineOperand.h:629
llvm::MachineOperand::CreateIntrinsicID
static MachineOperand CreateIntrinsicID(Intrinsic::ID ID)
Definition:MachineOperand.h:973
llvm::MachineOperand::isFPImm
bool isFPImm() const
isFPImm - Tests if this is a MO_FPImmediate operand.
Definition:MachineOperand.h:335
llvm::MachineOperand::CreateFI
static MachineOperand CreateFI(int Idx)
Definition:MachineOperand.h:870
llvm::MachineOperand::isMBB
bool isMBB() const
isMBB - Tests if this is a MO_MachineBasicBlock operand.
Definition:MachineOperand.h:337
llvm::MachineRegisterInfo
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
Definition:MachineRegisterInfo.h:51
llvm::ModuleSlotTracker
Manage lifetime of a slot tracker for printing IR.
Definition:ModuleSlotTracker.h:44
llvm::Register
Wrapper class representing virtual and physical registers.
Definition:Register.h:19
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:StringRef.h:51
llvm::TargetIntrinsicInfo
TargetIntrinsicInfo - Interface to description of machine instruction set.
Definition:TargetIntrinsicInfo.h:29
llvm::TargetRegisterInfo
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
Definition:TargetRegisterInfo.h:235
llvm::hash_code
An opaque object representing a hash code.
Definition:Hashing.h:75
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition:raw_ostream.h:52
uint32_t
uint64_t
unsigned
llvm::AMDGPU::HSAMD::Kernel::Key::SymbolName
constexpr char SymbolName[]
Key for Kernel::Metadata::mSymbolName.
Definition:AMDGPUMetadata.h:387
llvm::CallingConv::ID
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Definition:CallingConv.h:24
llvm::ISD::ConstantFP
@ ConstantFP
Definition:ISDOpcodes.h:77
llvm::ISD::MCSymbol
@ MCSymbol
Definition:ISDOpcodes.h:178
llvm::ISD::Constant
@ Constant
Definition:ISDOpcodes.h:76
llvm::ISD::BlockAddress
@ BlockAddress
Definition:ISDOpcodes.h:84
llvm::Intrinsic::ID
unsigned ID
Definition:GenericSSAContext.h:28
llvm::M68k::MemAddrModeKind::K
@ K
llvm::X86Disassembler::Reg
Reg
All possible values of the reg field in the ModR/M byte.
Definition:X86DisassemblerDecoder.h:621
llvm::dwarf::Index
Index
Definition:Dwarf.h:882
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:AddressRanges.h:18
llvm::Offset
@ Offset
Definition:DWP.cpp:480
llvm::hash_value
hash_code hash_value(const FixedPointSemantics &Val)
Definition:APFixedPoint.h:136
llvm::IRMemLocation::Other
@ Other
Any other memory.
llvm::alignTo
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
Definition:Alignment.h:155
llvm::Op
DWARFExpression::Operation Op
Definition:DWARFExpression.cpp:22
llvm::operator<<
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)
Definition:APFixedPoint.h:303
llvm::DenseMapInfo< MachineOperand >::getHashValue
static unsigned getHashValue(const MachineOperand &MO)
Definition:MachineOperand.h:1029
llvm::DenseMapInfo< MachineOperand >::getTombstoneKey
static MachineOperand getTombstoneKey()
Definition:MachineOperand.h:1025
llvm::DenseMapInfo< MachineOperand >::getEmptyKey
static MachineOperand getEmptyKey()
Definition:MachineOperand.h:1021
llvm::DenseMapInfo< MachineOperand >::isEqual
static bool isEqual(const MachineOperand &LHS, const MachineOperand &RHS)
Definition:MachineOperand.h:1032
llvm::DenseMapInfo
An information struct used to provide DenseMap with the various necessary components for a given valu...
Definition:DenseMapInfo.h:52

Generated on Sun Jul 20 2025 07:11:57 for LLVM by doxygen 1.9.6
[8]ページ先頭

©2009-2025 Movatter.jp