From d33035dca2f6ba52b511c78f920a6674a96381a4 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Mon, 11 Nov 2013 11:16:05 +0000 Subject: [PATCH] + 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 - --- .gitattributes | 1 + compiler/llvm/nllvmld.pas | 44 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 compiler/llvm/nllvmld.pas diff --git a/.gitattributes b/.gitattributes index fa2a0585c9..720436c67f 100644 --- a/.gitattributes +++ b/.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 diff --git a/compiler/llvm/nllvmld.pas b/compiler/llvm/nllvmld.pas new file mode 100644 index 0000000000..f4db71fdbb --- /dev/null +++ b/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. +