LLVMTypeLabel.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 14 Aug 2015 06:26:02 +0100
changeset 27 b26354bbff25
child 70 ced2a5c16e70
permissions -rw-r--r--
LLVM type system refactored to use a subclass per kind. This models LLVM types bit more object-oriented as type-specific methods such as access to parameter/member types is implemented in specific classes only. The FFI callouts still return a generic LLVMType, which later changes its class during it's initialization (see LLVMType>>initialize). Added some tests for types.

"
    Copyright (C) 2015-now Jan Vrany

    This code is not an open-source (yet). You may use this code
    for your own experiments and projects, given that:

    * all modification to the code will be sent to the
      original author for inclusion in future releases
    * this is not used in any commercial software

    This license is provisional and may (will) change in
    a future.
"
"{ Package: 'jv:llvm_s' }"

"{ NameSpace: Smalltalk }"

LLVMType subclass:#LLVMTypeLabel
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'LLVM-S-Core-Types'
!

!LLVMTypeLabel class methodsFor:'documentation'!

copyright
"
    Copyright (C) 2015-now Jan Vrany

    This code is not an open-source (yet). You may use this code
    for your own experiments and projects, given that:

    * all modification to the code will be sent to the
      original author for inclusion in future releases
    * this is not used in any commercial software

    This license is provisional and may (will) change in
    a future.
"
! !

!LLVMTypeLabel methodsFor:'testing'!

isLabelType
    ^ true

    "Created: / 13-08-2015 / 16:52:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !