xref: /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVMCAsmInfo.cpp (revision 5fb307d29b364982acbde82cbf77db3cae486f8c)
1 //===-- SPIRVMCAsmInfo.h - SPIR-V asm properties --------------*- C++ -*--====//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains the declarations of the SPIRVMCAsmInfo properties.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "SPIRVMCAsmInfo.h"
14 #include "llvm/TargetParser/Triple.h"
15 
16 using namespace llvm;
17 
18 SPIRVMCAsmInfo::SPIRVMCAsmInfo(const Triple &TT,
19                                const MCTargetOptions &Options) {
20   IsLittleEndian = true;
21 
22   HasSingleParameterDotFile = false;
23   HasDotTypeDotSizeDirective = false;
24 
25   MinInstAlignment = 4;
26 
27   CodePointerSize = 4;
28   CommentString = ";";
29   HasFunctionAlignment = false;
30 }
31 
32 bool SPIRVMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
33   return true;
34 }
35