Path: blob/main/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/VEMCAsmInfo.cpp
35294 views
//===- VEMCAsmInfo.cpp - VE 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//===----------------------------------------------------------------------===//7//8// This file contains the declarations of the VEMCAsmInfo properties.9//10//===----------------------------------------------------------------------===//1112#include "VEMCAsmInfo.h"13#include "llvm/BinaryFormat/Dwarf.h"14#include "llvm/MC/MCExpr.h"15#include "llvm/MC/MCStreamer.h"16#include "llvm/MC/MCTargetOptions.h"17#include "llvm/TargetParser/Triple.h"1819using namespace llvm;2021void VEELFMCAsmInfo::anchor() {}2223VEELFMCAsmInfo::VEELFMCAsmInfo(const Triple &TheTriple) {2425CodePointerSize = CalleeSaveStackSlotSize = 8;26MaxInstLength = MinInstAlignment = 8;2728// VE uses ".*byte" directive for unaligned data.29Data8bitsDirective = "\t.byte\t";30Data16bitsDirective = "\t.2byte\t";31Data32bitsDirective = "\t.4byte\t";32Data64bitsDirective = "\t.8byte\t";3334// Uses '.section' before '.bss' directive. VE requires this although35// assembler manual says sinple '.bss' is supported.36UsesELFSectionDirectiveForBSS = true;3738SupportsDebugInformation = true;39}404142