• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
PTXMCAsmInfo(const Target & T,const StringRef & TT)19 PTXMCAsmInfo::PTXMCAsmInfo(const Target &T, const StringRef &TT) {
20   Triple TheTriple(TT);
21   if (TheTriple.getArch() == Triple::ptx64)
22     PointerSize = 8;
23 
24   CommentString = "//";
25 
26   PrivateGlobalPrefix = "$L__";
27 
28   AllowPeriodsInName = false;
29 
30   HasSetDirective = false;
31 
32   HasDotTypeDotSizeDirective = false;
33 
34   HasSingleParameterDotFile = false;
35 }
36