cfgexpand: Expand comment on when non-var clobbers can show up
[official-gcc.git] / gcc / ada / libgnat / s-maccod.ads
blob5a11d56d3b4418fe95de0796fa1e7c482744d4e9
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S Y S T E M . M A C H I N E _ C O D E --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2024, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This package provides machine code support, both for intrinsic machine
33 -- operations, and also for machine code statements. See GNAT documentation
34 -- for full details.
36 package System.Machine_Code
37 with SPARK_Mode => Off
39 pragma No_Elaboration_Code_All;
40 pragma Pure;
42 -- All identifiers in this unit are implementation defined
44 pragma Implementation_Defined;
46 type Asm_Input_Operand is private;
47 type Asm_Output_Operand is private;
48 -- These types are never used directly, they are declared only so that
49 -- the calls to Asm are type correct according to Ada semantic rules.
51 No_Input_Operands : constant Asm_Input_Operand;
52 No_Output_Operands : constant Asm_Output_Operand;
54 type Asm_Input_Operand_List is
55 array (Integer range <>) of Asm_Input_Operand;
57 type Asm_Output_Operand_List is
58 array (Integer range <>) of Asm_Output_Operand;
60 type Asm_Insn is private;
61 -- This type is not used directly. It is declared only so that the
62 -- aggregates used in code statements are type correct by Ada rules.
64 procedure Asm (
65 Template : String;
66 Outputs : Asm_Output_Operand_List;
67 Inputs : Asm_Input_Operand_List;
68 Clobber : String := "";
69 Volatile : Boolean := False);
71 procedure Asm (
72 Template : String;
73 Outputs : Asm_Output_Operand := No_Output_Operands;
74 Inputs : Asm_Input_Operand_List;
75 Clobber : String := "";
76 Volatile : Boolean := False);
78 procedure Asm (
79 Template : String;
80 Outputs : Asm_Output_Operand_List;
81 Inputs : Asm_Input_Operand := No_Input_Operands;
82 Clobber : String := "";
83 Volatile : Boolean := False);
85 procedure Asm (
86 Template : String;
87 Outputs : Asm_Output_Operand := No_Output_Operands;
88 Inputs : Asm_Input_Operand := No_Input_Operands;
89 Clobber : String := "";
90 Volatile : Boolean := False);
92 function Asm (
93 Template : String;
94 Outputs : Asm_Output_Operand_List;
95 Inputs : Asm_Input_Operand_List;
96 Clobber : String := "";
97 Volatile : Boolean := False) return Asm_Insn;
99 function Asm (
100 Template : String;
101 Outputs : Asm_Output_Operand := No_Output_Operands;
102 Inputs : Asm_Input_Operand_List;
103 Clobber : String := "";
104 Volatile : Boolean := False) return Asm_Insn;
106 function Asm (
107 Template : String;
108 Outputs : Asm_Output_Operand_List;
109 Inputs : Asm_Input_Operand := No_Input_Operands;
110 Clobber : String := "";
111 Volatile : Boolean := False) return Asm_Insn;
113 function Asm (
114 Template : String;
115 Outputs : Asm_Output_Operand := No_Output_Operands;
116 Inputs : Asm_Input_Operand := No_Input_Operands;
117 Clobber : String := "";
118 Volatile : Boolean := False) return Asm_Insn;
120 pragma Import (Intrinsic, Asm);
122 private
124 type Asm_Input_Operand is new Integer;
125 type Asm_Output_Operand is new Integer;
126 type Asm_Insn is new Integer;
127 -- All three of these types are dummy types, to meet the requirements of
128 -- type consistency. No values of these types are ever referenced.
130 No_Input_Operands : constant Asm_Input_Operand := 0;
131 No_Output_Operands : constant Asm_Output_Operand := 0;
133 end System.Machine_Code;