Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | public: | ||||
bool doInitialization(Module &M) override; | bool doInitialization(Module &M) override; | ||||
bool doFinalization(Module &M) override; | bool doFinalization(Module &M) override; | ||||
bool runOnMachineFunction(MachineFunction &MF) override; | bool runOnMachineFunction(MachineFunction &MF) override; | ||||
/// Wrapper for MCInstLowering.lowerOperand() for the tblgen'erated | /// Wrapper for MCInstLowering.lowerOperand() for the tblgen'erated | ||||
/// pseudo lowering. | /// pseudo lowering. | ||||
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; | bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; | ||||
/// Lower a cast of the null pointer to address space 7, which produces a | |||||
/// 128-bit null buffer descriptor, to a null constant value, because 128-bit | |||||
/// values do not fit in MCExpr. | |||||
Constant *constantFoldForPrint(const Constant *CV) override; | |||||
arsenm: I don't understand this hook. Why is printing special? I'd rather extend with an… | |||||
arsenmUnsubmitted Not Done ReplyInline ActionsMCAPIntConstantExpr? arsenm: MCAPIntConstantExpr? | |||||
/// Lower the specified LLVM Constant to an MCExpr. | /// Lower the specified LLVM Constant to an MCExpr. | ||||
/// The AsmPrinter::lowerConstantof does not know how to lower | /// The AsmPrinter::lowerConstantof does not know how to lower | ||||
/// addrspacecast, therefore they should be lowered by this function. | /// addrspacecast, therefore they should be lowered by this function. | ||||
const MCExpr *lowerConstant(const Constant *CV) override; | const MCExpr *lowerConstant(const Constant *CV) override; | ||||
/// tblgen'erated driver function for lowering simple MI->MC pseudo | /// tblgen'erated driver function for lowering simple MI->MC pseudo | ||||
/// instructions. | /// instructions. | ||||
bool emitPseudoExpansionLowering(MCStreamer &OutStreamer, | bool emitPseudoExpansionLowering(MCStreamer &OutStreamer, | ||||
Show All 36 Lines |
I don't understand this hook. Why is printing special? I'd rather extend with an MCBigConstantExpr or similar implementation rather than hack around this