LLVMDLLStorageClass.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 10 Aug 2015 10:33:42 +0100
changeset 23 0744cd9c0acc
parent 14 c7dea3fcc5a7
permissions -rw-r--r--
Added an example of iterative factorial function It does not check for integer overflow as that would require using an intrinsic (which are not yet supported)

"
    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 }"

SharedPool subclass:#LLVMDLLStorageClass
	instanceVariableNames:''
	classVariableNames:'LLVMDefaultStorageClass LLVMDLLImportStorageClass
		LLVMDLLExportStorageClass'
	poolDictionaries:''
	category:'LLVM-S-Core-Constants'
!

!LLVMDLLStorageClass 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.
"
! !

!LLVMDLLStorageClass class methodsFor:'initialization'!

initialize

    LLVMDefaultStorageClass := 0.
    LLVMDLLImportStorageClass := 1.
    LLVMDLLExportStorageClass := 2.
! !

!LLVMDLLStorageClass class methodsFor:'constants'!

LLVMDLLExportStorageClass

    ^LLVMDLLExportStorageClass
!

LLVMDLLImportStorageClass

    ^LLVMDLLImportStorageClass
!

LLVMDefaultStorageClass

    ^LLVMDefaultStorageClass
! !


LLVMDLLStorageClass initialize!