浏览代码

+ llvm implementation of load nodes (inherit from tcgnestloadnode, because
support for loading data from parent routines in nested routines has to
be implemented explicitly via records, like for the jvm target)

git-svn-id: branches/hlcgllvm@26049 -

Jonas Maebe 11 年之前
父节点
当前提交
d33035dca2
共有 2 个文件被更改,包括 45 次插入0 次删除
  1. 1 0
      .gitattributes
  2. 44 0
      compiler/llvm/nllvmld.pas

+ 1 - 0
.gitattributes

@@ -325,6 +325,7 @@ compiler/llvm/llvmpara.pas svneol=native#text/plain
 compiler/llvm/llvmsym.pas svneol=native#text/plain
 compiler/llvm/nllvmadd.pas svneol=native#text/plain
 compiler/llvm/nllvmcon.pas svneol=native#text/plain
+compiler/llvm/nllvmld.pas svneol=native#text/plain
 compiler/llvm/rgllvm.pas svneol=native#text/plain
 compiler/llvm/tgllvm.pas svneol=native#text/plain
 compiler/m68k/aasmcpu.pas svneol=native#text/plain

+ 44 - 0
compiler/llvm/nllvmld.pas

@@ -0,0 +1,44 @@
+{
+    Copyright (c) 2012 by Jonas Maebe
+
+    Generate LLVM bytecode for nodes that handle loads and assignments
+
+    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 nllvmld;
+
+{$mode objfpc}
+
+interface
+
+    uses
+      ncgnstld;
+
+    type
+      tllvmloadnode = class(tcgnestloadnode)
+      end;
+
+
+implementation
+
+     uses
+       nld;
+
+begin
+  cloadnode:=tllvmloadnode;
+end.
+