1 //===-- RISCVMCAsmInfo.cpp - RISCV Asm properties -------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declarations of the RISCVMCAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "RISCVMCAsmInfo.h"
15 #include "llvm/ADT/Triple.h"
18 void RISCVMCAsmInfo::anchor() {}
20 RISCVMCAsmInfo::RISCVMCAsmInfo(const Triple &TT) {
21 CodePointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4;
23 AlignmentIsInBytes = false;
24 SupportsDebugInformation = true;
25 Data16bitsDirective = "\t.half\t";
26 Data32bitsDirective = "\t.word\t";