|
|
|||
File indexing completed on 2026-05-10 08:44:32
0001 //===--- MipsABIFlags.h - MIPS ABI flags ----------------------------------===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 // 0009 // This file defines the constants for the ABI flags structure contained 0010 // in the .MIPS.abiflags section. 0011 // 0012 // https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking 0013 // 0014 //===----------------------------------------------------------------------===// 0015 0016 #ifndef LLVM_SUPPORT_MIPSABIFLAGS_H 0017 #define LLVM_SUPPORT_MIPSABIFLAGS_H 0018 0019 namespace llvm { 0020 namespace Mips { 0021 0022 // Values for the xxx_size bytes of an ABI flags structure. 0023 enum AFL_REG { 0024 AFL_REG_NONE = 0x00, // No registers 0025 AFL_REG_32 = 0x01, // 32-bit registers 0026 AFL_REG_64 = 0x02, // 64-bit registers 0027 AFL_REG_128 = 0x03 // 128-bit registers 0028 }; 0029 0030 // Masks for the ases word of an ABI flags structure. 0031 enum AFL_ASE { 0032 AFL_ASE_DSP = 0x00000001, // DSP ASE 0033 AFL_ASE_DSPR2 = 0x00000002, // DSP R2 ASE 0034 AFL_ASE_EVA = 0x00000004, // Enhanced VA Scheme 0035 AFL_ASE_MCU = 0x00000008, // MCU (MicroController) ASE 0036 AFL_ASE_MDMX = 0x00000010, // MDMX ASE 0037 AFL_ASE_MIPS3D = 0x00000020, // MIPS-3D ASE 0038 AFL_ASE_MT = 0x00000040, // MT ASE 0039 AFL_ASE_SMARTMIPS = 0x00000080, // SmartMIPS ASE 0040 AFL_ASE_VIRT = 0x00000100, // VZ ASE 0041 AFL_ASE_MSA = 0x00000200, // MSA ASE 0042 AFL_ASE_MIPS16 = 0x00000400, // MIPS16 ASE 0043 AFL_ASE_MICROMIPS = 0x00000800, // MICROMIPS ASE 0044 AFL_ASE_XPA = 0x00001000, // XPA ASE 0045 AFL_ASE_CRC = 0x00008000, // CRC ASE 0046 AFL_ASE_GINV = 0x00020000 // GINV ASE 0047 }; 0048 0049 // Values for the isa_ext word of an ABI flags structure. 0050 enum AFL_EXT { 0051 AFL_EXT_NONE = 0, // None 0052 AFL_EXT_XLR = 1, // RMI Xlr instruction 0053 AFL_EXT_OCTEON2 = 2, // Cavium Networks Octeon2 0054 AFL_EXT_OCTEONP = 3, // Cavium Networks OcteonP 0055 AFL_EXT_LOONGSON_3A = 4, // Loongson 3A 0056 AFL_EXT_OCTEON = 5, // Cavium Networks Octeon 0057 AFL_EXT_5900 = 6, // MIPS R5900 instruction 0058 AFL_EXT_4650 = 7, // MIPS R4650 instruction 0059 AFL_EXT_4010 = 8, // LSI R4010 instruction 0060 AFL_EXT_4100 = 9, // NEC VR4100 instruction 0061 AFL_EXT_3900 = 10, // Toshiba R3900 instruction 0062 AFL_EXT_10000 = 11, // MIPS R10000 instruction 0063 AFL_EXT_SB1 = 12, // Broadcom SB-1 instruction 0064 AFL_EXT_4111 = 13, // NEC VR4111/VR4181 instruction 0065 AFL_EXT_4120 = 14, // NEC VR4120 instruction 0066 AFL_EXT_5400 = 15, // NEC VR5400 instruction 0067 AFL_EXT_5500 = 16, // NEC VR5500 instruction 0068 AFL_EXT_LOONGSON_2E = 17, // ST Microelectronics Loongson 2E 0069 AFL_EXT_LOONGSON_2F = 18, // ST Microelectronics Loongson 2F 0070 AFL_EXT_OCTEON3 = 19 // Cavium Networks Octeon3 0071 }; 0072 0073 // Values for the flags1 word of an ABI flags structure. 0074 enum AFL_FLAGS1 { AFL_FLAGS1_ODDSPREG = 1 }; 0075 0076 // MIPS object attribute tags 0077 enum { 0078 Tag_GNU_MIPS_ABI_FP = 4, // Floating-point ABI used by this object file 0079 Tag_GNU_MIPS_ABI_MSA = 8, // MSA ABI used by this object file 0080 }; 0081 0082 // Values for the fp_abi word of an ABI flags structure 0083 // and for the Tag_GNU_MIPS_ABI_FP attribute tag. 0084 enum Val_GNU_MIPS_ABI_FP { 0085 Val_GNU_MIPS_ABI_FP_ANY = 0, // not tagged 0086 Val_GNU_MIPS_ABI_FP_DOUBLE = 1, // hard float / -mdouble-float 0087 Val_GNU_MIPS_ABI_FP_SINGLE = 2, // hard float / -msingle-float 0088 Val_GNU_MIPS_ABI_FP_SOFT = 3, // soft float 0089 Val_GNU_MIPS_ABI_FP_OLD_64 = 4, // -mips32r2 -mfp64 0090 Val_GNU_MIPS_ABI_FP_XX = 5, // -mfpxx 0091 Val_GNU_MIPS_ABI_FP_64 = 6, // -mips32r2 -mfp64 0092 Val_GNU_MIPS_ABI_FP_64A = 7 // -mips32r2 -mfp64 -mno-odd-spreg 0093 }; 0094 0095 // Values for the Tag_GNU_MIPS_ABI_MSA attribute tag. 0096 enum Val_GNU_MIPS_ABI_MSA { 0097 Val_GNU_MIPS_ABI_MSA_ANY = 0, // not tagged 0098 Val_GNU_MIPS_ABI_MSA_128 = 1 // 128-bit MSA 0099 }; 0100 } 0101 } 0102 0103 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|