| OLD | NEW |
| 1 //===-- ARMAsmPrinter.h - ARM implementation of AsmPrinter ------*- C++ -*-===// | 1 //===-- ARMAsmPrinter.h - ARM implementation of AsmPrinter ------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 | 9 |
| 10 #ifndef LLVM_LIB_TARGET_ARM_ARMASMPRINTER_H | 10 #ifndef LLVM_LIB_TARGET_ARM_ARMASMPRINTER_H |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 raw_ostream &O) override; | 67 raw_ostream &O) override; |
| 68 | 68 |
| 69 void emitInlineAsmEnd(const MCSubtargetInfo &StartInfo, | 69 void emitInlineAsmEnd(const MCSubtargetInfo &StartInfo, |
| 70 const MCSubtargetInfo *EndInfo) const override; | 70 const MCSubtargetInfo *EndInfo) const override; |
| 71 | 71 |
| 72 void EmitJumpTable(const MachineInstr *MI); | 72 void EmitJumpTable(const MachineInstr *MI); |
| 73 void EmitJump2Table(const MachineInstr *MI); | 73 void EmitJump2Table(const MachineInstr *MI); |
| 74 void EmitInstruction(const MachineInstr *MI) override; | 74 void EmitInstruction(const MachineInstr *MI) override; |
| 75 bool runOnMachineFunction(MachineFunction &F) override; | 75 bool runOnMachineFunction(MachineFunction &F) override; |
| 76 | 76 |
| 77 // @LOCALMOD-START |
| 78 // Usually this does nothing on ARM as constants pools are handled with |
| 79 // custom code (for constant islands). |
| 80 // When not using constant islands, fall back to the default implementation. |
| 77 void EmitConstantPool() override { | 81 void EmitConstantPool() override { |
| 78 // we emit constant pools customly! | 82 if (!Subtarget->useConstIslands()) AsmPrinter::EmitConstantPool(); |
| 79 } | 83 } |
| 84 // @LOCALMOD-END |
| 85 |
| 80 void EmitFunctionBodyEnd() override; | 86 void EmitFunctionBodyEnd() override; |
| 81 void EmitFunctionEntryLabel() override; | 87 void EmitFunctionEntryLabel() override; |
| 82 void EmitStartOfAsmFile(Module &M) override; | 88 void EmitStartOfAsmFile(Module &M) override; |
| 83 void EmitEndOfAsmFile(Module &M) override; | 89 void EmitEndOfAsmFile(Module &M) override; |
| 84 void EmitXXStructor(const Constant *CV) override; | 90 void EmitXXStructor(const Constant *CV) override; |
| 85 | 91 |
| 86 // lowerOperand - Convert a MachineOperand into the equivalent MCOperand. | 92 // lowerOperand - Convert a MachineOperand into the equivalent MCOperand. |
| 87 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp); | 93 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp); |
| 94 |
| 95 // @LOCALMOD-START |
| 96 /// UseReadOnlyJumpTables - true if JumpTableInfo must be in rodata. |
| 97 bool UseReadOnlyJumpTables() const override; |
| 98 /// GetTargetBasicBlockAlign - Get the target alignment for basic blocks. |
| 99 unsigned GetTargetBasicBlockAlign() const override; |
| 100 /// GetTargetLabelAlign - Get optional alignment for TargetOpcode |
| 101 /// labels E.g., EH_LABEL. |
| 102 /// TODO(sehr,robertm): remove this if the labeled block has address taken. |
| 103 unsigned GetTargetLabelAlign(const MachineInstr *MI) const override; |
| 104 // @LOCALMOD-END |
| 88 | 105 |
| 89 private: | 106 private: |
| 90 // Helpers for EmitStartOfAsmFile() and EmitEndOfAsmFile() | 107 // Helpers for EmitStartOfAsmFile() and EmitEndOfAsmFile() |
| 91 void emitAttributes(); | 108 void emitAttributes(); |
| 92 | 109 |
| 93 // Generic helper used to emit e.g. ARMv5 mul pseudos | 110 // Generic helper used to emit e.g. ARMv5 mul pseudos |
| 94 void EmitPatchedInstruction(const MachineInstr *MI, unsigned TargetOpc); | 111 void EmitPatchedInstruction(const MachineInstr *MI, unsigned TargetOpc); |
| 95 | 112 |
| 96 void EmitUnwindingInstruction(const MachineInstr *MI); | 113 void EmitUnwindingInstruction(const MachineInstr *MI); |
| 97 | 114 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 117 MCSymbol *GetARMGVSymbol(const GlobalValue *GV, unsigned char TargetFlags); | 134 MCSymbol *GetARMGVSymbol(const GlobalValue *GV, unsigned char TargetFlags); |
| 118 | 135 |
| 119 public: | 136 public: |
| 120 /// EmitMachineConstantPoolValue - Print a machine constantpool value to | 137 /// EmitMachineConstantPoolValue - Print a machine constantpool value to |
| 121 /// the .s file. | 138 /// the .s file. |
| 122 void EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) override; | 139 void EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) override; |
| 123 }; | 140 }; |
| 124 } // end namespace llvm | 141 } // end namespace llvm |
| 125 | 142 |
| 126 #endif | 143 #endif |
| OLD | NEW |