comparison lib/Target/ARM/ARMAsmPrinter.h @ 148:63bd29f05246

merged
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 14 Aug 2019 19:46:37 +0900
parents c2174574ed3a
children
comparison
equal deleted inserted replaced
146:3fc4d5c3e21e 148:63bd29f05246
1 //===-- ARMAsmPrinter.h - ARM implementation of AsmPrinter ------*- C++ -*-===// 1 //===-- ARMAsmPrinter.h - ARM implementation of AsmPrinter ------*- C++ -*-===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // 4 // See https://llvm.org/LICENSE.txt for license information.
5 // This file is distributed under the University of Illinois Open Source 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 // License. See LICENSE.TXT for details.
7 // 6 //
8 //===----------------------------------------------------------------------===// 7 //===----------------------------------------------------------------------===//
9 8
10 #ifndef LLVM_LIB_TARGET_ARM_ARMASMPRINTER_H 9 #ifndef LLVM_LIB_TARGET_ARM_ARMASMPRINTER_H
11 #define LLVM_LIB_TARGET_ARM_ARMASMPRINTER_H 10 #define LLVM_LIB_TARGET_ARM_ARMASMPRINTER_H
74 return "ARM Assembly Printer"; 73 return "ARM Assembly Printer";
75 } 74 }
76 75
77 void printOperand(const MachineInstr *MI, int OpNum, raw_ostream &O); 76 void printOperand(const MachineInstr *MI, int OpNum, raw_ostream &O);
78 77
78 void PrintSymbolOperand(const MachineOperand &MO, raw_ostream &O) override;
79 bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNum, 79 bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNum,
80 unsigned AsmVariant, const char *ExtraCode, 80 const char *ExtraCode, raw_ostream &O) override;
81 raw_ostream &O) override;
82 bool PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNum, 81 bool PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNum,
83 unsigned AsmVariant, const char *ExtraCode, 82 const char *ExtraCode, raw_ostream &O) override;
84 raw_ostream &O) override;
85 83
86 void emitInlineAsmEnd(const MCSubtargetInfo &StartInfo, 84 void emitInlineAsmEnd(const MCSubtargetInfo &StartInfo,
87 const MCSubtargetInfo *EndInfo) const override; 85 const MCSubtargetInfo *EndInfo) const override;
88 86
89 void EmitJumpTableAddrs(const MachineInstr *MI); 87 void EmitJumpTableAddrs(const MachineInstr *MI);
99 void EmitFunctionEntryLabel() override; 97 void EmitFunctionEntryLabel() override;
100 void EmitStartOfAsmFile(Module &M) override; 98 void EmitStartOfAsmFile(Module &M) override;
101 void EmitEndOfAsmFile(Module &M) override; 99 void EmitEndOfAsmFile(Module &M) override;
102 void EmitXXStructor(const DataLayout &DL, const Constant *CV) override; 100 void EmitXXStructor(const DataLayout &DL, const Constant *CV) override;
103 void EmitGlobalVariable(const GlobalVariable *GV) override; 101 void EmitGlobalVariable(const GlobalVariable *GV) override;
104 102
103 MCSymbol *GetCPISymbol(unsigned CPID) const override;
104
105 // lowerOperand - Convert a MachineOperand into the equivalent MCOperand. 105 // lowerOperand - Convert a MachineOperand into the equivalent MCOperand.
106 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp); 106 bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp);
107 107
108 //===------------------------------------------------------------------===// 108 //===------------------------------------------------------------------===//
109 // XRay implementation 109 // XRay implementation