Path: blob/main/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCAsmInfo.cpp
35294 views
//===-- LoongArchMCAsmInfo.cpp - LoongArch Asm properties ------*- C++ -*--===//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//===----------------------------------------------------------------------===//7//8// This file contains the declarations of the LoongArchMCAsmInfo properties.9//10//===----------------------------------------------------------------------===//1112#include "LoongArchMCAsmInfo.h"13#include "llvm/BinaryFormat/Dwarf.h"14#include "llvm/MC/MCStreamer.h"15#include "llvm/TargetParser/Triple.h"1617using namespace llvm;1819void LoongArchMCAsmInfo::anchor() {}2021LoongArchMCAsmInfo::LoongArchMCAsmInfo(const Triple &TT) {22CodePointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4;23AlignmentIsInBytes = false;24Data8bitsDirective = "\t.byte\t";25Data16bitsDirective = "\t.half\t";26Data32bitsDirective = "\t.word\t";27Data64bitsDirective = "\t.dword\t";28ZeroDirective = "\t.space\t";29CommentString = "#";30SupportsDebugInformation = true;31DwarfRegNumForCFI = true;32ExceptionsType = ExceptionHandling::DwarfCFI;33}343536