1 //===- VEMCAsmInfo.cpp - VE asm properties --------------------------------===// 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 VEMCAsmInfo properties. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #include "VEMCAsmInfo.h" 14 #include "llvm/MC/MCStreamer.h" 15 #include "llvm/TargetParser/Triple.h" 16 17 using namespace llvm; 18 19 void VEELFMCAsmInfo::anchor() {} 20 21 VEELFMCAsmInfo::VEELFMCAsmInfo(const Triple &TheTriple) { 22 23 CodePointerSize = CalleeSaveStackSlotSize = 8; 24 MaxInstLength = MinInstAlignment = 8; 25 26 // VE uses ".*byte" directive for unaligned data. 27 Data8bitsDirective = "\t.byte\t"; 28 Data16bitsDirective = "\t.2byte\t"; 29 Data32bitsDirective = "\t.4byte\t"; 30 Data64bitsDirective = "\t.8byte\t"; 31 32 // Uses '.section' before '.bss' directive. VE requires this although 33 // assembler manual says sinple '.bss' is supported. 34 UsesELFSectionDirectiveForBSS = true; 35 36 SupportsDebugInformation = true; 37 } 38