OSDN Git Service

Teach tblgen's set theory "sequence" operator to support an optional stride operand.
[android-x86/external-llvm.git] / lib / Target / PTX / MCTargetDesc / PTXMCAsmInfo.cpp
1 //===-- PTXMCAsmInfo.cpp - PTX asm properties -----------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declarations of the PTXMCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "PTXMCAsmInfo.h"
15 #include "llvm/ADT/Triple.h"
16
17 using namespace llvm;
18
19 void PTXMCAsmInfo::anchor() { }
20
21 PTXMCAsmInfo::PTXMCAsmInfo(const Target &T, const StringRef &TT) {
22   Triple TheTriple(TT);
23   if (TheTriple.getArch() == Triple::ptx64)
24     PointerSize = 8;
25
26   CommentString = "//";
27
28   PrivateGlobalPrefix = "$L__";
29
30   AllowPeriodsInName = false;
31
32   HasSetDirective = false;
33
34   HasDotTypeDotSizeDirective = false;
35
36   HasSingleParameterDotFile = false;
37 }