Mercurial > hg > CbC > CbC_llvm
comparison lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | e4204d083e25 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:95c75e76d11b |
---|---|
1 //===-- NVPTXMCAsmInfo.cpp - NVPTX 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 NVPTXMCAsmInfo properties. | |
11 // | |
12 //===----------------------------------------------------------------------===// | |
13 | |
14 #include "NVPTXMCAsmInfo.h" | |
15 #include "llvm/ADT/Triple.h" | |
16 #include "llvm/Support/CommandLine.h" | |
17 | |
18 using namespace llvm; | |
19 | |
20 // -debug-compile - Command line option to inform opt and llc passes to | |
21 // compile for debugging | |
22 static cl::opt<bool> CompileForDebugging("debug-compile", | |
23 cl::desc("Compile for debugging"), | |
24 cl::Hidden, cl::init(false)); | |
25 | |
26 void NVPTXMCAsmInfo::anchor() {} | |
27 | |
28 NVPTXMCAsmInfo::NVPTXMCAsmInfo(const StringRef &TT) { | |
29 Triple TheTriple(TT); | |
30 if (TheTriple.getArch() == Triple::nvptx64) { | |
31 PointerSize = CalleeSaveStackSlotSize = 8; | |
32 } | |
33 | |
34 CommentString = "//"; | |
35 | |
36 PrivateGlobalPrefix = "$L__"; | |
37 | |
38 HasSetDirective = false; | |
39 | |
40 HasSingleParameterDotFile = false; | |
41 | |
42 InlineAsmStart = " inline asm"; | |
43 InlineAsmEnd = " inline asm"; | |
44 | |
45 SupportsDebugInformation = CompileForDebugging; | |
46 HasDotTypeDotSizeDirective = false; | |
47 | |
48 Data8bitsDirective = " .b8 "; | |
49 Data16bitsDirective = " .b16 "; | |
50 Data32bitsDirective = " .b32 "; | |
51 Data64bitsDirective = " .b64 "; | |
52 PrivateGlobalPrefix = ""; | |
53 ZeroDirective = " .b8"; | |
54 AsciiDirective = " .b8"; | |
55 AscizDirective = " .b8"; | |
56 | |
57 // @TODO: Can we just disable this? | |
58 GlobalDirective = "\t// .globl\t"; | |
59 } |