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/ADT/Triple.h" 15 16using namespace llvm; 17 18SPIRVMCAsmInfo::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 32bool SPIRVMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const { 33 return true; 34} 35