mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 13:39:36 +02:00
+ added WebAssembly node utils
This commit is contained in:
parent
5abfe21f39
commit
860e4487c3
@ -34,12 +34,8 @@ implementation
|
||||
ncgadd, ncgcal,ncgmat,ncginl,
|
||||
|
||||
nwasmadd,nwasmcal,nwasmmat,nwasmflw,nwasmcon,nwasmcnv,nwasmset,nwasminl,
|
||||
(* todo: WASM
|
||||
njvmcnv,njvmcon,njvminl,njvmmem,njvmld,
|
||||
njvmset,njvmvmt
|
||||
{ these are not really nodes }
|
||||
,rgcpu,tgcpu,njvmutil,njvmtcon,
|
||||
*)
|
||||
nwasmutil,
|
||||
{ symtable }
|
||||
symcpu;
|
||||
{ no aasmdef, the WebAssembly uses the base TAsmData class (set in init code of aasmcpu) }
|
||||
|
42
compiler/wasm32/nwasmutil.pas
Normal file
42
compiler/wasm32/nwasmutil.pas
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
Copyright (c) 2021 by Nikolay Nikolov
|
||||
|
||||
WebAssembly version of some node tree helper routines
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
****************************************************************************
|
||||
}
|
||||
unit nwasmutil;
|
||||
|
||||
{$i fpcdefs.inc}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
ngenutil;
|
||||
|
||||
type
|
||||
|
||||
{ twasmnodeutils }
|
||||
|
||||
twasmnodeutils = class(tnodeutils)
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
||||
begin
|
||||
cnodeutils:=twasmnodeutils;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user