
This patch adds basic assembler and MC layer infrastructure for RISC-V big-endian targets (riscv32be/riscv64be): - Register big-endian targets in RISCVTargetMachine - Add big-endian data layout strings - Implement endianness-aware fixup application in assembler backend - Add byte swapping for data fixups on BE cores - Update MC layer components (AsmInfo, MCTargetDesc, Disassembler, AsmParser) This provides the foundation for BE support but does not yet include: - Codegen patterns for BE - Load/store instruction handling - BE-specific subtarget features
24 lines
733 B
C++
24 lines
733 B
C++
//===-- RISCVTargetInfo.h - RISC-V Target Implementation --------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_RISCV_TARGETINFO_RISCVTARGETINFO_H
|
|
#define LLVM_LIB_TARGET_RISCV_TARGETINFO_RISCVTARGETINFO_H
|
|
|
|
namespace llvm {
|
|
|
|
class Target;
|
|
|
|
Target &getTheRISCV32Target();
|
|
Target &getTheRISCV64Target();
|
|
Target &getTheRISCV32beTarget();
|
|
Target &getTheRISCV64beTarget();
|
|
|
|
} // namespace llvm
|
|
|
|
#endif // LLVM_LIB_TARGET_RISCV_TARGETINFO_RISCVTARGETINFO_H
|