PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/src/wrappers/llvm/library/values/llvm_argument.e

http://github.com/tybor/Liberty
Specman e | 45 lines | 16 code | 9 blank | 20 comment | 0 complexity | b2e83a51675ef16f0ccf733f5e146c13 MD5 | raw file
 1class LLVM_ARGUMENT
 2	-- An incoming formal argument to a LLVM_FUNCTION. An argument is a very
 3	-- simple LLVM_VALUE. It is essentially a named (optional) type. When used
 4	-- in the body of a function, it represents the value of the actual
 5	-- argument the function was called with.
 6
 7inherit LLVM_VALUE
 8
 9feature {ANY} 
10	add_attribute (an_attribute: LLVMATTRIBUTE_ENUM)
11		-- Add `an_attribute' to Current
12	do
13		llvmadd_attribute(handle,an_attribute.value)
14	end
15
16	remove_attribute (an_attribute: LLVMATTRIBUTE_ENUM)
17	do
18		llvmremove_attribute(handle,an_attribute.value)
19	end
20
21	set_alinment (an_alignment: NATURAL_32)
22	do
23		llvmset_param_alignment(handle,an_alignment)
24	end
25
26end -- class LLVM_ARGUMENT
27
28-- Copyright (C) 2009-2017: Paolo Redaelli
29
30
31-- This file is part of LLVM wrappers for Liberty Eiffel.
32--
33-- This library is free software: you can redistribute it and/or modify
34-- it under the terms of the GNU Lesser General Public License as published by
35-- the Free Software Foundation, version 3 of the License.
36--
37-- Liberty Eiffel is distributed in the hope that it will be useful,
38-- but WITHOUT ANY WARRANTY; without even the implied warranty of
39-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
40-- GNU General Public License for more details.
41--
42-- You should have received a copy of the GNU General Public License
43-- along with Liberty Eiffel.  If not, see <http://www.gnu.org/licenses/>.
44--
45