mirror of
https://github.com/opnsense/src.git
synced 2026-03-31 06:55:18 -04:00
all of the features in the current working draft of the upcoming C++ standard, provisionally named C++1y. The code generator's performance is greatly increased, and the loop auto-vectorizer is now enabled at -Os and -O2 in addition to -O3. The PowerPC backend has made several major improvements to code generation quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ backends have all seen major feature work. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.4/docs/ReleaseNotes.html> <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html> MFC after: 1 month
69 lines
2.7 KiB
C++
69 lines
2.7 KiB
C++
//==- SystemZInstPrinter.h - Convert SystemZ MCInst to assembly --*- C++ -*-==//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This class prints a SystemZ MCInst to a .s file.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_SYSTEMZINSTPRINTER_H
|
|
#define LLVM_SYSTEMZINSTPRINTER_H
|
|
|
|
#include "llvm/MC/MCInstPrinter.h"
|
|
#include "llvm/Support/Compiler.h"
|
|
|
|
namespace llvm {
|
|
class MCOperand;
|
|
|
|
class SystemZInstPrinter : public MCInstPrinter {
|
|
public:
|
|
SystemZInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
|
const MCRegisterInfo &MRI)
|
|
: MCInstPrinter(MAI, MII, MRI) {}
|
|
|
|
// Automatically generated by tblgen.
|
|
void printInstruction(const MCInst *MI, raw_ostream &O);
|
|
static const char *getRegisterName(unsigned RegNo);
|
|
|
|
// Print an address with the given base, displacement and index.
|
|
static void printAddress(unsigned Base, int64_t Disp, unsigned Index,
|
|
raw_ostream &O);
|
|
|
|
// Print the given operand.
|
|
static void printOperand(const MCOperand &MO, raw_ostream &O);
|
|
|
|
// Override MCInstPrinter.
|
|
virtual void printRegName(raw_ostream &O, unsigned RegNo) const
|
|
LLVM_OVERRIDE;
|
|
virtual void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot)
|
|
LLVM_OVERRIDE;
|
|
|
|
private:
|
|
// Print various types of operand.
|
|
void printOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printBDAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printBDXAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printBDLAddrOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printU4ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printU6ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printS8ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printU8ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printS16ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printU16ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printS32ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printU32ImmOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printPCRelOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
void printAccessRegOperand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
|
|
// Print the mnemonic for a condition-code mask ("ne", "lh", etc.)
|
|
// This forms part of the instruction name rather than the operand list.
|
|
void printCond4Operand(const MCInst *MI, int OpNum, raw_ostream &O);
|
|
};
|
|
} // end namespace llvm
|
|
|
|
#endif
|