LLVMTypeFloatingPoint.st
changeset 57 4ca7c3a327a2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LLVMTypeFloatingPoint.st	Fri Feb 12 11:50:22 2016 +0000
@@ -0,0 +1,63 @@
+"
+    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 }"
+
+LLVMTypeScalar subclass:#LLVMTypeFloatingPoint
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'LLVM-S-Core-Types'
+!
+
+!LLVMTypeFloatingPoint 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.
+"
+! !
+
+!LLVMTypeFloatingPoint class methodsFor:'queries'!
+
+isAbstract
+    "Return if this class is an abstract class.
+     True is returned here for myself only; false for subclasses.
+     Abstract subclasses must redefine again."
+
+    ^ self == LLVMTypeFloatingPoint.
+! !
+
+!LLVMTypeFloatingPoint methodsFor:'converting'!
+
+vector: numberOfElements
+    "Create a fixed-size vector whose elements are of type of receiver."
+
+    self assertIsIntegerUnsigned: numberOfElements.  
+    ^ LLVM VectorType: self _:  numberOfElements
+
+    "Created: / 13-08-2015 / 18:59:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+