summaryrefslogtreecommitdiffstats
path: root/llgo/irgen/compiler.go
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [llgo] Update to use the latest IR attribute bindingsMeador Inge2016-12-061-2/+2
| | | | | | | | A recent commit (r286087) to the LLVM Go bindings that changed things over to use the new attribute API broke llgo. This commit updates llgo accordingly. llvm-svn: 288769
* [llgo] irgen: always use TargetMachine's data layoutAndrew Wilkins2015-09-251-13/+0
| | | | | | | | | | | | | | | | | | | | | | | Summary: Another attempt at resolving the runtime assertion in llgoi due to data layout mismatch between module and execution engine. The X86 data layout constant appears to be unnecessary, and does not match what the execution engine picks. Using the registered Target, we pick the same data layout as the execution engine. While I was in the vicinity, I deleted the last remnants of PNaCl support. Reviewers: pcc Subscribers: jfb, llvm-commits, dschuff Differential Revision: http://reviews.llvm.org/D12630 llvm-svn: 248565
* Roll gofrontend to 07baa07598ea; roll libffi to r219477.Peter Collingbourne2015-04-051-3/+6
| | | | | | | | | Incorporates https://codereview.appspot.com/198770044, which causes us to start using the static chain register for closures instead of __go_{get,set}_closure. Differential Revision: http://reviews.llvm.org/D8829 llvm-svn: 234135
* Roll gotools to d4e70101.Peter Collingbourne2015-04-051-2/+3
| | | | | | | | | | | | Most importantly, this gives us https://go-review.googlesource.com/7533 which fixes a bug in go/ssa that caused test failures in the Go 1.4 standard library. Also remove the go1.4 tag workaround. We no longer need it now that we ship llgo-go. Differential Revision: http://reviews.llvm.org/D8827 llvm-svn: 234133
* llgoi: Fix type identity for imported binary packages.Peter Collingbourne2015-03-181-2/+6
| | | | | | | | | | | | go/loader creates a fresh package map for each source package it imports. In llgoi this caused binary imported packages to be imported anew for every input line, resulting in spurious type errors and panics in go/ssa when encountering previously imported types. Fix this by setting types.Config.Packages to our internal package map. Differential Revision: http://reviews.llvm.org/D8409 llvm-svn: 232617
* irgen: expose DisableUnusedImportCheck flagPeter Collingbourne2015-01-141-0/+5
| | | | | | Differential Revision: http://reviews.llvm.org/D6956 llvm-svn: 225946
* irgen: expose PackageCreated hookPeter Collingbourne2015-01-141-1/+7
| | | | | | Differential Revision: http://reviews.llvm.org/D6955 llvm-svn: 225945
* Roll gotools to 47f2109c.Peter Collingbourne2015-01-131-5/+5
| | | | | | | | | | | At the same time, perform a number of simplifications: - Rename go.tools directory to gotools. - Import only the go directory; all required Go analysis code and its dependencies have now been moved to this directory. llvm-svn: 225825
* irgen: modify the ABI to use init guards instead of priorityPeter Collingbourne2014-12-311-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | The new ABI is simpler for use cases such as dynamically loaded packages. The calling convention for import functions is similar to what go/ssa would produce if BareInits were cleared. However, simply clearing this flag causes two additional issues: 1) We would need to special case the 'init$guard' variable (see discussion in https://codereview.appspot.com/78780043/). 2) The call to __go_register_gc_roots needs to appear in the right place, i.e. after the guard check. Making this check appear in the right place with non-bare inits seems unreliable at best. So we keep BareInits set and generate the necessary code manually. It is still possible to get the old ABI by specifying a path to a gccgo installation. Differential Revision: http://reviews.llvm.org/D6804 llvm-svn: 225030
* irgen: make it possible to use a custom importerPeter Collingbourne2014-12-311-22/+41
| | | | | | Differential Revision: http://reviews.llvm.org/D6803 llvm-svn: 225029
* irgen: return a types.Package to the compiler clientPeter Collingbourne2014-12-311-1/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D6802 llvm-svn: 225028
* irgen, driver: modify Compiler.Compile to take a FileSet and FilesPeter Collingbourne2014-12-311-10/+5
| | | | | | | | | | | This change allows clients to generate IR using "files" received from locations other than the file system. The regular file parser is moved to a new library, "driver", which is intended to eventually contain much of the logic from the existing driver. Differential Revision: http://reviews.llvm.org/D6794 llvm-svn: 225026
* irgen: remove unused compiler.runtimetypespkg field.Peter Collingbourne2014-12-291-4/+0
| | | | llvm-svn: 224931
* Initial commit of llgo.Peter Collingbourne2014-11-271-0/+361
llvm-svn: 222857
OpenPOWER on IntegriCloud