14#ifndef LLVM_LIB_TARGET_PISA_PISAMCINSTLOWER_H
15#define LLVM_LIB_TARGET_PISA_PISAMCINSTLOWER_H
60 Pair.first->second.IsVariable =
true;
67 if (It == MC->
Opnds.end())
69 return It->second.IsVariable;
75 auto Pair = MC->
Opnds.try_emplace(
78 Pair.first->second.Swizzle =
static_cast<unsigned>(
Swizzle);
85 if (It == MC->
Opnds.end())
92 : OutContext(Ctx), TRI(TRI), RegMgr(RegMgr), AP(AP) {}
#define LLVM_LIBRARY_VISIBILITY
static MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym, const AsmPrinter &AP)
Register const TargetRegisterInfo * TRI
This file declares definitions shared across the PISA backend.
This file declares register information for the PISA target.
static std::vector< std::pair< int, unsigned > > Swizzle(std::vector< std::pair< int, unsigned > > Src, R600InstrInfo::BankSwizzle Swz)
This class is intended to be used as a driving class for all asm writers.
DenseMapIterator< KeyT, ValueT, KeyInfoT, BucketT, true > const_iterator
Context object for machine code objects.
Instances of this class represent a single low-level machine instruction.
Instances of this class represent operands of the MCInst class.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Representation of each machine instruction.
MachineOperand class - Representation of each machine instruction operand.
static PISA::Swizzle getSwizzle(const MCInst &MI, unsigned OpNo)
static bool isVariableRef(const MCInst &MI, unsigned int OpNo)
static void setSwizzle(MCInst &MI, unsigned OpNo, PISA::Swizzle Swizzle)
static void setVariableRef(MCInst &MI, unsigned OpNo)
PISAMCInstLower(MCContext &Ctx, const PISARegisterInfo &TRI, const PISA::RegManager &RegMgr, const AsmPrinter &AP)
void setSourceLine(unsigned L)
unsigned getSourceLine() const
SmallDenseMap< unsigned, PISAMCOpnd > Opnds
This is an optimization pass for GlobalISel generic memory operations.