2012-12-12 05:25:42 +08:00
|
|
|
//===-- MCTargetDesc/AMDGPUMCAsmInfo.cpp - Assembly Info ------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
/// \file
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "AMDGPUMCAsmInfo.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Summary:
This is the first patch in the series to migrate Triple's (which are ambiguous)
to TargetTuple's (which aren't).
For the moment, TargetTuple simply passes all requests to the Triple object it
holds. Once it has replaced Triple, it will start to implement the interface in
a more suitable way.
This change makes some changes to the public C++ API. In particular,
InitMCSubtargetInfo(), createMCRelocationInfo(), and createMCSymbolizer()
now take TargetTuples instead of Triples. The other public C++ API's have
been left as-is for the moment to reduce patch size.
This commit also contains a trivial patch to clang to account for the C++ API
change. Thanks go to Pavel Labath for fixing LLDB for me.
Reviewers: rengolin
Subscribers: jyknight, dschuff, arsenm, rampitec, danalbert, srhines, javed.absar, dsanders, echristo, emaste, jholewinski, tberghammer, ted, jfb, llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D10969
llvm-svn: 247692
2015-09-15 22:08:28 +08:00
|
|
|
AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const TargetTuple &TT) : MCAsmInfoELF() {
|
2012-12-12 05:25:42 +08:00
|
|
|
HasSingleParameterDotFile = false;
|
|
|
|
//===------------------------------------------------------------------===//
|
|
|
|
MaxInstLength = 16;
|
|
|
|
SeparatorString = "\n";
|
|
|
|
CommentString = ";";
|
2014-12-04 08:06:57 +08:00
|
|
|
PrivateLabelPrefix = "";
|
2012-12-12 05:25:42 +08:00
|
|
|
InlineAsmStart = ";#ASMSTART";
|
|
|
|
InlineAsmEnd = ";#ASMEND";
|
|
|
|
|
|
|
|
//===--- Data Emission Directives -------------------------------------===//
|
|
|
|
ZeroDirective = ".zero";
|
|
|
|
AsciiDirective = ".ascii\t";
|
|
|
|
AscizDirective = ".asciz\t";
|
|
|
|
Data8bitsDirective = ".byte\t";
|
|
|
|
Data16bitsDirective = ".short\t";
|
|
|
|
Data32bitsDirective = ".long\t";
|
|
|
|
Data64bitsDirective = ".quad\t";
|
|
|
|
SunStyleELFSectionSwitchSyntax = true;
|
|
|
|
UsesELFSectionDirectiveForBSS = true;
|
|
|
|
|
|
|
|
//===--- Global Variable Emission Directives --------------------------===//
|
|
|
|
HasAggressiveSymbolFolding = true;
|
|
|
|
COMMDirectiveAlignmentIsInBytes = false;
|
|
|
|
HasDotTypeDotSizeDirective = false;
|
|
|
|
HasNoDeadStrip = true;
|
|
|
|
WeakRefDirective = ".weakref\t";
|
|
|
|
//===--- Dwarf Emission Directives -----------------------------------===//
|
|
|
|
SupportsDebugInformation = true;
|
|
|
|
}
|