Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: lib/Target/ARM/ARMAsmPrinter.h

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/Target/ARM/ARM.h ('k') | lib/Target/ARM/ARMAsmPrinter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « lib/Target/ARM/ARM.h ('k') | lib/Target/ARM/ARMAsmPrinter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698