LLVM: lib/Target/RISCV/MCTargetDesc/RISCVMCObjectFileInfo.cpp Source File (original) (raw)
Go to the documentation of this file.
1//===-- RISCVMCObjectFileInfo.cpp - RISC-V object file 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 RISCVMCObjectFileInfo properties.
10//
11//===----------------------------------------------------------------------===//
12
17
18using namespace llvm;
19
20unsigned
22 return STI.hasFeature(RISCV::FeatureStdExtZca) ? 2 : 4;
23}
24
MCContext & getContext() const
Generic base class for all target subtargets.
bool hasFeature(unsigned Feature) const
unsigned getTextSectionAlignment() const override
Definition RISCVMCObjectFileInfo.cpp:25
This is an optimization pass for GlobalISel generic memory operations.