Path: blob/main/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
35294 views
//===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "SystemZMCAsmInfo.h"9#include "llvm/MC/MCContext.h"10#include "llvm/MC/MCSectionELF.h"1112using namespace llvm;1314SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(const Triple &TT) {15AssemblerDialect = AD_ATT;16CalleeSaveStackSlotSize = 8;17CodePointerSize = 8;18Data64bitsDirective = "\t.quad\t";19ExceptionsType = ExceptionHandling::DwarfCFI;20IsLittleEndian = false;21MaxInstLength = 6;22SupportsDebugInformation = true;23UsesELFSectionDirectiveForBSS = true;24ZeroDirective = "\t.space\t";25}2627SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(const Triple &TT) {28AllowAdditionalComments = false;29AllowAtInName = true;30AllowAtAtStartOfIdentifier = true;31AllowDollarAtStartOfIdentifier = true;32AllowHashAtStartOfIdentifier = true;33AssemblerDialect = AD_HLASM;34CalleeSaveStackSlotSize = 8;35CodePointerSize = 8;36CommentString = "*";37DotIsPC = false;38EmitGNUAsmStartIndentationMarker = false;39EmitLabelsInUpperCase = true;40ExceptionsType = ExceptionHandling::ZOS;41IsLittleEndian = false;42MaxInstLength = 6;43RestrictCommentStringToStartOfStatement = true;44StarIsPC = true;45SupportsDebugInformation = true;46}4748bool SystemZMCAsmInfoGOFF::isAcceptableChar(char C) const {49return MCAsmInfo::isAcceptableChar(C) || C == '#';50}515253