/src/wrappers/llvm/library/types/llvm_pointer_types.e

http://github.com/tybor/Liberty · Specman e · 32 lines · 11 code · 3 blank · 18 comment · 0 complexity · 45a6732ee868e13c5ca8adfe10aae459 MD5 · raw file

  1. deferred class LLVM_POINTER_TYPES
  2. -- Commodity queries for commonly used integer types: boolean (1bit),
  3. -- 8,16,32,64 bits and commodoty creation factory-like features
  4. obsolete "use LLVM_C_TYPES"
  5. insert ANY undefine copy, is_equal end
  6. feature {ANY} --
  7. pointer(a_type: LLVM_TYPE): LLVM_POINTER_TYPE
  8. -- The type of a pointer to `a_type'; i.e. pointer(int_32) represents "int*".
  9. require a_type/=Void
  10. do
  11. create Result.make(a_type)
  12. ensure Result/=Void
  13. end
  14. end -- class LLVM_POINTER_TYPES
  15. -- Copyright (C) 2009-2017: ,2010,2013 Paolo Redaelli - 2013 Cyril Adrian
  16. -- This file is part of LLVM wrappers for Liberty Eiffel.
  17. --
  18. -- This library is free software: you can redistribute it and/or modify
  19. -- it under the terms of the GNU Lesser General Public License as published by
  20. -- the Free Software Foundation, version 3 of the License.
  21. --
  22. -- Liberty Eiffel is distributed in the hope that it will be useful,
  23. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25. -- GNU General Public License for more details.
  26. --
  27. -- You should have received a copy of the GNU General Public License
  28. -- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
  29. --