LLVM 20.0.0git
SPIRVMCAsmInfo.cpp
Go to the documentation of this file.
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"
15
16using namespace llvm;
17
19 const MCTargetOptions &Options) {
20 IsLittleEndian = true;
21
24
26
28 CommentString = ";";
30}
31
33 return true;
34}
static LVOptions Options
Definition: LVOptions.cpp:25
unsigned MinInstAlignment
Every possible instruction length is a multiple of this value.
Definition: MCAsmInfo.h:115
bool HasFunctionAlignment
Definition: MCAsmInfo.h:386
bool HasDotTypeDotSizeDirective
True if the target has .type and .size directives, this is true for most ELF targets.
Definition: MCAsmInfo.h:390
bool HasSingleParameterDotFile
True if the target has a single parameter .file directive, this is true for ELF targets.
Definition: MCAsmInfo.h:394
bool IsLittleEndian
True if target is little endian. Default is true.
Definition: MCAsmInfo.h:79
unsigned CodePointerSize
Code pointer size in bytes. Default is 4.
Definition: MCAsmInfo.h:72
StringRef CommentString
This indicates the comment string used by the assembler.
Definition: MCAsmInfo.h:135
SPIRVMCAsmInfo(const Triple &TT, const MCTargetOptions &Options)
bool shouldOmitSectionDirective(StringRef SectionName) const override
Return true if the .section directive should be omitted when emitting SectionName.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18