summaryrefslogtreecommitdiff
path: root/llgo
AgeCommit message (Collapse)Author
2019-01-15Update year in license filesHans Wennborg
In last year's update (D48219) it was suggested that the release manager might want to do this, so here we go.
2018-06-18Update copyright year to 2018.Paul Robinson
2017-06-04irgen: Create functions instead of global variables for builtin hash and ↵Peter Collingbourne
equal algorithms. These are in fact functions, and have function type, so it is invalid to represent them using global variables.
2017-04-03benchcomp: Add a mode for analyzing file sizes.Peter Collingbourne
2016-12-06[llgo] Remove support for LLVM attributesMeador Inge
llgo supports the application of LLVM attributes to global objects and functions. This "feature" is undocumented and untested. As discusses in D27442, it should be removed. Differential Revision: https://reviews.llvm.org/D27474
2016-12-06[llgo] set debuglocs for calls in synthetic functionsAndrew Wilkins
Synthesized functions do not have valid locations, and so we were not setting a debug location. Recent changes to DI require that function call instructions within a function having DI must have a location set. We just set the debug location to line=0, col=0. Reviewers: pcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D22905
2016-12-06[llgo] Update to use the latest IR attribute bindingsMeador Inge
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.
2016-12-06[llgo] Fix `debug` to use latest `DIBuilder` bindingsMeador Inge
Two recent commits to the LLVM Go bindings caused breaking changes to llgo: 1. r284707 - Moving the `AlignInBits` field from `DIBasicType` to `DIAutoVariable`. 2. r284482 - The `AlignInBits` fields going from `uint64` to `uint32`. This commit updates llgo accordingly.
2016-07-27[llgo] add llgo source path to LLVM_GO_PACKAGESAndrew Wilkins
Summary: To support the use of LLVM_EXTERNAL_LLGO_SOURCE_DIR, with llgo situated in a location other than tools/llgo, we add the llgo source directory to LLVM_GO_PACKAGES. Reviewers: pcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D21635
2016-07-14Upgrade all the .arcconfigs to https.Benjamin Kramer
2016-04-25[llgo] llgoi: separate evaluation from printingAndrew Wilkins
Summary: Separate the evaluation of expressions from printing of results. This is in preparation for splitting the core of the interpreter out for use in alternative interpreter frontends. At the same time, the output is made less noisy in response to comments on the golang-nuts announcement. We would ideally print out values using Go syntax, but this is impractical until we have libgo based on Go 1.5. When that happens, fmt's %#v will handle reflect.Value better, and so we can fix/filter type names to remove automatically generated package names. Reviewers: pcc Subscribers: llvm-commits, axw Differential Revision: http://reviews.llvm.org/D13761
2016-04-08benchcomp: Add a mode for analyzing rule execution time in ninja log files.Peter Collingbourne
2016-04-08benchcomp: Look at all sections whose names begin with .text, not just the ↵Peter Collingbourne
.text section.
2016-03-30[llgo] add USES_TERMINAL option to check-libgoAndrew Wilkins
Summary: The check-libgo target runs "make check" in the libgo package, which can take a long time on slower machines. To prevent buildbot failures due to timeout, we can use Ninja's console pool for this target. Reviewers: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9495
2016-03-23[llgo] Increment "Debug Info Version"Andrew Wilkins
Patch by Michal Cierniak! This patch increments the "Debug Info Version" from 2 to 3. This is a nop if you just want to generate binaries. I verified that with and without this patch, when I run llgo -g on a Go source file, I get exactly the same binary. The purpose of the patch is to make it possible to run the llvm-dis tool. Without the patch, it is impossible to disassemble files generated with llgo: $ llgo -c -g -emit-llvm src/hello.go $ llvm-dis hello.o llvm-dis: warning: ignoring debug info with an invalid version (2) in hello.o Differential Revision: http://reviews.llvm.org/D18355
2016-03-23[cmake] fix libgo-llgo paths in install targetAndrew Wilkins
2016-03-15[llgo] Roll gofrontend forwardAndrew Wilkins
Switch gofrontend to using go.googlesource.com, and update to 81eb6a3f425b2158c67ee32c0cc973a72ce9d6be. There are various changes required to update to the go 1.5 runtime: typemap.go is changed to accommodate the change in representation for equal/hash algorithms, and the removal of the zero value/type. CMakeLists.txt is updated to add the build tree to the package search path, so internal packages, which are not installed, are found. various files changes due to removal of __go_new_nopointers; the same change as in D11863, but with NoUnwindAttribute added to the added runtime functions which are called with "callOnly". minor cleanups in ssa.go while investigating issues with unwinding/panic handling. Differential Revisision: http://reviews.llvm.org/D15188
2015-11-27[llgo] Force exporting __morestack from llgoiAndrew Wilkins
Summary: Force exporting __morestack from llgoi, so that the symbol is available to the execution engine when linking with libLLVM.so. The engine does not reference __morestack explicitly, so must be provided by the host program. Reviewers: pcc Subscribers: axw, llvm-commits Differential Revision: http://reviews.llvm.org/D12625
2015-11-05debug: Update for debug info API change.Peter Collingbourne
2015-09-25[llgo] irgen: always use TargetMachine's data layoutAndrew Wilkins
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
2015-09-01[llgo] drop debug/DIBuilder.DeclareAndrew Wilkins
Summary: Companion to D11864, which updates the DIBuilder bindings to match a recent change in the underlying API. We drop the debug/DIBuilder.Declare method for now, which is unused, as otherwise it will be broken with the new DIBuilder API in the Go bindings. Reviewers: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11891
2015-08-05Update to new lists.llvm.orgTanya Lattner
2015-07-21[llgo] build llgoi by defaultAndrew Wilkins
Summary: As llgoi is installed, it must be built or the install target will fail; there is no implicit dependency. Adding llgoi to "ALL" makes building llgo as part of an entire LLVM distribution a bit friendlier: you can then just do the typical "make && make install". Reviewers: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11291
2015-07-17[llgo] cmd/gllgo: handle/ignore more flagsAndrew Wilkins
Summary: This diff is to support Debian packaging, which sets various hardening-rleated flags in CFLAGS. They don't make sense for Go, so we just ignore them. Reviewers: pcc Subscribers: llvm-commits, axw Differential Revision: http://reviews.llvm.org/D11288
2015-07-15[llgo] update libgo-llgo.so version to match libtool_VERSIONAndrew Wilkins
Summary: libtool_VERSION was changed in gofrontend a while ago, but CMakeLists.txt in llgo wasn't updated, and so the install target fails. Not sure how this went unnoticed for so long. Reviewers: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11118
2015-07-15[llgo] set function personality with SetPersonalityAndrew Wilkins
Summary: If a function requires a landing pad, set the personality function. Requires D11116. Reviewers: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11117
2015-05-23[llgo] cmd/llgoi: use line editorAndrew Wilkins
Summary: This diff adds line-editing to llgoi, by vendoring and using github.com/peterh/liner. I have only implemented the basics here; follow-ups will come later to add persisted history, and completion, Reviewers: pcc Reviewed By: pcc Subscribers: axw, llvm-commits Differential Revision: http://reviews.llvm.org/D9811
2015-05-12benchcomp: Add macho_symsizes mode for comparing Mach-O object symbol sizes.Peter Collingbourne
2015-04-08[llgo] add buildbot-slave configAndrew Wilkins
Summary: This patch adds the configuration used to deploy the llgo-builder buildbot slave. The builder is deployed to Google Compute Engine using Juju. Reviewers: pcc Reviewed By: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8854
2015-04-05Add documentation for llgoi, update READMEPeter Collingbourne
2015-04-05Roll gofrontend to 15a24202fa42.Peter Collingbourne
Takes us to Go 1.4.2 plus a number of bug fixes. Differential Revision: http://reviews.llvm.org/D8830
2015-04-05Roll gofrontend to 07baa07598ea; roll libffi to r219477.Peter Collingbourne
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
2015-04-05Roll gofrontend to a6e10414311aPeter Collingbourne
This takes us to Go 1.4. Also includes a couple of changes to the test suite, both in the runtime package: - Disable TestSetPanicOnFault. We cannot support this scenario at all, due to LLVM's lack of non-call exceptions. - Tweak TestFinalizerType. This test only passes with two GC runs. Differential Revision: http://reviews.llvm.org/D8828
2015-04-05Roll gotools to d4e70101.Peter Collingbourne
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
2015-03-18llgoi: Fix type identity for imported binary packages.Peter Collingbourne
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
2015-03-18Add llgo-go to installation.Peter Collingbourne
2015-03-18llgoi: Fix importing source packages together with dependent binary packages.Peter Collingbourne
Note that this means that llgoi does not support the case where a package's pkgpath is different from its import path, but I don't think this should actually happen with llgoi. Differential Revision: http://reviews.llvm.org/D8403
2015-03-17Add cgo dependency to llgo-stage2 and llgoi.Peter Collingbourne
2015-03-13[llgo] update year in LICENSE.txtAndrew Wilkins
2015-03-06[llgo] Disable known failing packages in check-libgoAndrew Wilkins
Summary: There are two packages in libgo which have known failures when running the "make check" rule. This change disables those packages in the tests so that we can run libgo tests without them until the root causes are identified and resolved. Test Plan: ran check-libgo rule Reviewers: pcc Reviewed By: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8003
2015-03-05Fix test to use explicit load type.Peter Collingbourne
2015-03-02[llgo] debug: create replaceable type through DIBuilderAndrew Wilkins
Summary: llgo was asserting in DebugInfo, which was interpreting the temporary MDNodes we were creating as DIScopes instead of DITypes (in DIScope::getRef). This proposal changes llgo to use DIBuilder's createReplaceableCompositeType method to create a DIType that can be RAUW'd. Reviewers: pcc Reviewed By: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7852
2015-02-14Build cgo and llgo-goPeter Collingbourne
Differential Revision: http://reviews.llvm.org/D7629
2015-02-13Roll gofrontend to 0fde0b6a7eb2Peter Collingbourne
This gives us the sources for cgo, go and gofmt.
2015-02-13Update for API changePeter Collingbourne
2015-01-29irgen: don't emit debug metadata for localsAndrew Wilkins
Summary: The debug metadata we generate is wrong, and is now causing build failures. This revision disables the only llvm.dbg.declare calls we make. (There is also a drive-by fix to CMakeLists.txt, adding in a missing .go dependency.) Fixes http://llvm.org/bugs/show_bug.cgi?id=22330 Reviewers: pcc Reviewed By: pcc Subscribers: dblaikie, llvm-commits Differential Revision: http://reviews.llvm.org/D7222
2015-01-15Introduce llgoi, a REPL for GoPeter Collingbourne
llgoi is a Go REPL based on llgo irgen and the LLVM JIT. It supports expressions, statements, most declarations and imports, including binary imports from the standard library and source imports from $GOPATH. Differential Revision: http://reviews.llvm.org/D6957
2015-01-14irgen: expose DisableUnusedImportCheck flagPeter Collingbourne
Differential Revision: http://reviews.llvm.org/D6956
2015-01-14irgen: expose PackageCreated hookPeter Collingbourne
Differential Revision: http://reviews.llvm.org/D6955
2015-01-13Roll gotools to 47f2109c.Peter Collingbourne
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.