LLVMIRBuilder.st
changeset 70 ced2a5c16e70
parent 66 0125c050d0f1
child 72 2c876bd46960
equal deleted inserted replaced
69:98f4cfe5d041 70:ced2a5c16e70
   393 
   393 
   394     ^ LLVM BuildPtrToInt: self  _: value _: type _: name.
   394     ^ LLVM BuildPtrToInt: self  _: value _: type _: name.
   395 
   395 
   396     "Created: / 11-02-2016 / 20:40:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   396     "Created: / 11-02-2016 / 20:40:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   397     "Modified: / 12-02-2016 / 11:55:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   397     "Modified: / 12-02-2016 / 11:55:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   398 ! !
       
   399 
       
   400 !LLVMIRBuilder methodsFor:'instructions - intrinsics'!
       
   401 
       
   402 memcpy: dst _: src _: size _: align _: volatile
       
   403     self assertIsValue: dst ofKind: LLVMPointerTypeKind.
       
   404     self assertIsValue: src ofKind: LLVMPointerTypeKind.
       
   405     self assertIsValue: size ofType: LLVMType int64.
       
   406     self assertIsInteger32Unsigned: align.
       
   407     self assertIsBoolean: volatile.
       
   408 
       
   409     ^ LLVMCEXT BuildMemCpy: self _: dst _: src _: size _: align _: volatile
       
   410 
       
   411     "Created: / 06-07-2016 / 09:45:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   412 !
       
   413 
       
   414 memmove: ptr _: val _: size _: align _: volatile
       
   415     self assertIsValue: ptr ofKind: LLVMPointerTypeKind.
       
   416     self assertIsValue: val ofKind: LLVMIntegerTypeKind.
       
   417     self assertIsValue: size ofType: LLVMType int64.
       
   418     self assertIsInteger32Unsigned: align.
       
   419     self assertIsBoolean: volatile.
       
   420 
       
   421     ^ LLVMCEXT BuildMemMove: self _: ptr _: val _: size _: align _: volatile
       
   422 
       
   423     "Created: / 06-07-2016 / 09:45:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   424 !
       
   425 
       
   426 memset: ptr _: val _: size _: align _: volatile
       
   427     self assertIsValue: ptr ofKind: LLVMPointerTypeKind.
       
   428     self assertIsValue: val ofKind: LLVMIntegerTypeKind.
       
   429     self assertIsValue: size ofType: LLVMType int64.
       
   430     self assertIsInteger32Unsigned: align.
       
   431     self assertIsBoolean: volatile.
       
   432 
       
   433     ^ LLVMCEXT BuildMemSet: self _: ptr _: val _: size _: align _: volatile
       
   434 
       
   435     "Created: / 06-07-2016 / 00:11:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   436     "Modified: / 06-07-2016 / 09:41:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   398 ! !
   437 ! !
   399 
   438 
   400 !LLVMIRBuilder methodsFor:'instructions - memory'!
   439 !LLVMIRBuilder methodsFor:'instructions - memory'!
   401 
   440 
   402 alloca: type
   441 alloca: type