/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

  1. class 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. inherit LLVM_VALUE
  7. feature {ANY}
  8. add_attribute (an_attribute: LLVMATTRIBUTE_ENUM)
  9. -- Add `an_attribute' to Current
  10. do
  11. llvmadd_attribute(handle,an_attribute.value)
  12. end
  13. remove_attribute (an_attribute: LLVMATTRIBUTE_ENUM)
  14. do
  15. llvmremove_attribute(handle,an_attribute.value)
  16. end
  17. set_alinment (an_alignment: NATURAL_32)
  18. do
  19. llvmset_param_alignment(handle,an_alignment)
  20. end
  21. end -- class LLVM_ARGUMENT
  22. -- Copyright (C) 2009-2017: Paolo Redaelli
  23. -- This file is part of LLVM wrappers for Liberty Eiffel.
  24. --
  25. -- This library is free software: you can redistribute it and/or modify
  26. -- it under the terms of the GNU Lesser General Public License as published by
  27. -- the Free Software Foundation, version 3 of the License.
  28. --
  29. -- Liberty Eiffel is distributed in the hope that it will be useful,
  30. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. -- GNU General Public License for more details.
  33. --
  34. -- You should have received a copy of the GNU General Public License
  35. -- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
  36. --