CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
80 lines
2.6 KiB
C++
80 lines
2.6 KiB
C++
//===---- MipsABIInfo.h - Information about MIPS ABI's --------------------===//
|
|
//
|
|
// 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_MIPS_MCTARGETDESC_MIPSABIINFO_H
|
|
#define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSABIINFO_H
|
|
|
|
#include "llvm/IR/CallingConv.h"
|
|
#include "llvm/MC/MCRegisterInfo.h"
|
|
#include "llvm/TargetParser/Triple.h"
|
|
|
|
namespace llvm {
|
|
|
|
template <typename T> class ArrayRef;
|
|
class MCTargetOptions;
|
|
class StringRef;
|
|
|
|
class MipsABIInfo {
|
|
public:
|
|
enum class ABI { Unknown, O32, N32, N64 };
|
|
|
|
protected:
|
|
ABI ThisABI;
|
|
|
|
public:
|
|
MipsABIInfo(ABI ThisABI) : ThisABI(ThisABI) {}
|
|
|
|
static MipsABIInfo Unknown() { return MipsABIInfo(ABI::Unknown); }
|
|
static MipsABIInfo O32() { return MipsABIInfo(ABI::O32); }
|
|
static MipsABIInfo N32() { return MipsABIInfo(ABI::N32); }
|
|
static MipsABIInfo N64() { return MipsABIInfo(ABI::N64); }
|
|
static MipsABIInfo computeTargetABI(const Triple &TT, StringRef ABIName);
|
|
|
|
bool IsKnown() const { return ThisABI != ABI::Unknown; }
|
|
bool IsO32() const { return ThisABI == ABI::O32; }
|
|
bool IsN32() const { return ThisABI == ABI::N32; }
|
|
bool IsN64() const { return ThisABI == ABI::N64; }
|
|
ABI GetEnumValue() const { return ThisABI; }
|
|
|
|
/// The registers to use for byval arguments.
|
|
ArrayRef<MCPhysReg> GetByValArgRegs() const;
|
|
|
|
/// The registers to use for the variable argument list.
|
|
ArrayRef<MCPhysReg> getVarArgRegs(bool isGP64bit) const;
|
|
|
|
/// Obtain the size of the area allocated by the callee for arguments.
|
|
/// CallingConv::FastCall affects the value for O32.
|
|
unsigned GetCalleeAllocdArgSizeInBytes(CallingConv::ID CC) const;
|
|
|
|
/// Ordering of ABI's
|
|
/// MipsGenSubtargetInfo.inc will use this to resolve conflicts when given
|
|
/// multiple ABI options.
|
|
bool operator<(const MipsABIInfo Other) const {
|
|
return ThisABI < Other.GetEnumValue();
|
|
}
|
|
|
|
unsigned GetStackPtr() const;
|
|
unsigned GetFramePtr() const;
|
|
unsigned GetBasePtr() const;
|
|
unsigned GetGlobalPtr() const;
|
|
unsigned GetNullPtr() const;
|
|
unsigned GetZeroReg() const;
|
|
unsigned GetPtrAdduOp() const;
|
|
unsigned GetPtrAddiuOp() const;
|
|
unsigned GetPtrSubuOp() const;
|
|
unsigned GetPtrAndOp() const;
|
|
unsigned GetGPRMoveOp() const;
|
|
inline bool ArePtrs64bit() const { return IsN64(); }
|
|
inline bool AreGprs64bit() const { return IsN32() || IsN64(); }
|
|
|
|
unsigned GetEhDataReg(unsigned I) const;
|
|
};
|
|
}
|
|
|
|
#endif
|