Coverage Report

Created: 2025-08-25 07:49

/src/keystone/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCAsmInfo.cpp
Line
Count
Source
1
//===-- RISCVMCAsmInfo.cpp - RISCV 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 RISCVMCAsmInfo properties.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#include "RISCVMCAsmInfo.h"
14
#include "llvm/ADT/Triple.h"
15
using namespace llvm_ks;
16
17
25.8k
RISCVMCAsmInfo::RISCVMCAsmInfo(const Triple &TT) {
18
25.8k
  PointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4;
19
25.8k
  CommentString = "#";
20
25.8k
  AlignmentIsInBytes = false;
21
25.8k
  SupportsDebugInformation = true;
22
25.8k
  ExceptionsType = ExceptionHandling::DwarfCFI;
23
25.8k
  Data16bitsDirective = "\t.half\t";
24
25.8k
  Data32bitsDirective = "\t.word\t";
25
25.8k
  PrivateGlobalPrefix = "L";
26
25.8k
  PrivateLabelPrefix = "L";
27
28
25.8k
}