Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/MC/MCAsmBackend.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | public: | ||||
const support::endianness Endian; | const support::endianness Endian; | ||||
/// Give the target a chance to manipulate state related to instruction | /// Give the target a chance to manipulate state related to instruction | ||||
/// alignment (e.g. padding for optimization) before and after actually | /// alignment (e.g. padding for optimization) before and after actually | ||||
/// emitting the instruction. | /// emitting the instruction. | ||||
virtual void alignBranchesBegin(MCObjectStreamer &OS, const MCInst &Inst) {} | virtual void alignBranchesBegin(MCObjectStreamer &OS, const MCInst &Inst) {} | ||||
virtual void alignBranchesEnd(MCObjectStreamer &OS, const MCInst &Inst) {} | virtual void alignBranchesEnd(MCObjectStreamer &OS, const MCInst &Inst) {} | ||||
/// Check if the target need to do instruction alignment. | |||||
bool needAlign(MCObjectStreamer &OS) const { return false; }; | |||||
annita.zhang: No semicolon in the end. | |||||
This looks like it can be combined w/the allowAutoPadding function which I recently added. reames: This looks like it can be combined w/the allowAutoPadding function which I recently added. | |||||
/// lifetime management | /// lifetime management | ||||
virtual void reset() {} | virtual void reset() {} | ||||
/// Create a new MCObjectWriter instance for use by the assembler backend to | /// Create a new MCObjectWriter instance for use by the assembler backend to | ||||
/// emit the final object file. | /// emit the final object file. | ||||
std::unique_ptr<MCObjectWriter> | std::unique_ptr<MCObjectWriter> | ||||
createObjectWriter(raw_pwrite_stream &OS) const; | createObjectWriter(raw_pwrite_stream &OS) const; | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |
No semicolon in the end.