Logan Chien [Mon, 19 Nov 2012 12:04:11 +0000 (12:04 +0000)]
Add -ldl for non-static libgcc in Android.
According to Android ABI, we have to link with
libdl.so, if we are linking with non-static libgcc.
Besides, this also fixes MIPS link error of
undefined references to `_Unwind_Find_FDE' and
`dl_iterate_phdr'.
llvm-svn: 168310
Logan Chien [Mon, 19 Nov 2012 11:45:31 +0000 (11:45 +0000)]
Enable -fuse-init-array for Android X86/MIPS.
The dynamic linker of Android does not support .ctors/.dtors.
We should emit .init_array and .fini_array regardless the
gcc version.
NOTE: This patch does not affect the ARM backend, because
it is required to generate .init_array and .fini_array
for program targeting ARM AAPCS and AEABI.
llvm-svn: 168309
Alexey Samsonov [Mon, 19 Nov 2012 11:22:22 +0000 (11:22 +0000)]
[ASan] use raw Exit() to kill the program in case ASan finds an error while reporting the error in the same thread
llvm-svn: 168308
Kostya Serebryany [Mon, 19 Nov 2012 10:31:00 +0000 (10:31 +0000)]
[asan] support x32 mode in the fast stack unwinder. Patch by H.J. Lu
llvm-svn: 168306
Alexey Samsonov [Mon, 19 Nov 2012 10:25:17 +0000 (10:25 +0000)]
[ASan] change interface of GetAccumulatedStats() function to prevent Clang from inserting memcpy() call into runtime.
llvm-svn: 168305
NAKAMURA Takumi [Mon, 19 Nov 2012 10:03:09 +0000 (10:03 +0000)]
Promote the constant 1 to long long, 1LL or 1ULL in int64_t-sensitive context.
llvm-svn: 168304
NAKAMURA Takumi [Mon, 19 Nov 2012 10:00:59 +0000 (10:00 +0000)]
clang/test: Suppress two tests on LLP64 target, Windows x64.
llvm-svn: 168303
Tobias Grosser [Mon, 19 Nov 2012 08:58:29 +0000 (08:58 +0000)]
First version of Polly release notes for 3.2
llvm-svn: 168302
Kostya Serebryany [Mon, 19 Nov 2012 07:53:36 +0000 (07:53 +0000)]
[asan] support PowerPC and SPARC in sanitizer_linux.cc
llvm-svn: 168301
Bob Wilson [Mon, 19 Nov 2012 07:04:35 +0000 (07:04 +0000)]
Clean up handling of always-inline functions in the inliner.
This patch moves the isInlineViable function from the InlineAlways pass into
the InlineCostAnalyzer and then changes the InlineCost computation to use that
simple check for always-inline functions. All the special-case checks for
AlwaysInline in the CallAnalyzer can then go away.
llvm-svn: 168300
Bob Wilson [Mon, 19 Nov 2012 07:04:30 +0000 (07:04 +0000)]
Some comment fixes.
llvm-svn: 168299
Chandler Carruth [Mon, 19 Nov 2012 03:52:03 +0000 (03:52 +0000)]
Completely re-work how the Clang driver interprets PIC and PIE options.
There were numerous issues here that were all entangled, and so I've
tried to do a general simplification of the logic.
1) The logic was mimicing actual GCC bugs, rather than "features". These
have been fixed in trunk GCC, and this fixes Clang as well. Notably,
the logic was always intended to be last-match-wins like any other
flag.
2) The logic for handling '-mdynamic-no-pic' was preposterously unclear.
It also allowed the use of this flag on non-Darwin platforms where it
has no actual meaning. Now this option is handled directly based on
tests of how llvm-gcc behaves, and it is only supported on Darwin.
3) The APIs for the Driver's ToolChains had the implementation ugliness
of dynamic-no-pic leaking through them. They also had the
implementation details of the LLVM relocation model flag names
leaking through.
4) The actual results of passing these flags was incorrect on Darwin in
many cases. For example, Darwin *always* uses PIC level 2 if it uses
in PIC level, and Darwin *always* uses PIC on 64-bit regardless of
the flags specified, including -fPIE. Darwin never compiles in PIE
mode, but it can *link* in PIE mode.
5) Also, PIC was not always being enabled even when PIE was. This isn't
a supported mode at all and may have caused some fallout in builds
with complex PIC and PIE interactions.
The result is (I hope) cleaner and clearer for readers. I've also left
comments and tests about some of the truly strage behavior that is
observed on Darwin platforms. We have no real testing of Windows
platforms and PIC, but I don't have the tools handy to figure that out.
Hopefully others can beef up our testing here.
Unfortunately, I can't test this for every platform. =/ If folks have
dependencies on these flags that aren't covered by tests, they may
break. I've audited and ensured that all the changes in behavior of the
existing tests are intentional and good. In particular I've tried to
make sure the Darwin behavior (which is more suprising than the Linux
behavior) also matches that of 'gcc' on my mac.
llvm-svn: 168297
Chandler Carruth [Mon, 19 Nov 2012 03:52:00 +0000 (03:52 +0000)]
Remove a no-op 'const' from a by-value return type.
llvm-svn: 168296
NAKAMURA Takumi [Mon, 19 Nov 2012 00:51:37 +0000 (00:51 +0000)]
RecursiveASTVisitor.h: Rework Doug's r160404, "Eliminating the GCC_CAST hack, take two."
With this, ARCMT tests would not crash on certain hosts with g++ -O2, eg. cygwin g++-4.5.3.
r160404 crashed mingw32-g++-4.4.0. I guess method's pointer in conditional expression could not be handled.
llvm-svn: 168295
Craig Topper [Mon, 19 Nov 2012 00:11:50 +0000 (00:11 +0000)]
Move else onto line with preceding closing brace.
llvm-svn: 168294
Dmitri Gribenko [Sun, 18 Nov 2012 22:28:42 +0000 (22:28 +0000)]
Remove redundant (duplicated) check.
llvm-svn: 168293
Duncan Sands [Sun, 18 Nov 2012 20:15:36 +0000 (20:15 +0000)]
Remove the last bit of constant folding from LinearizeExprTree (most of it was
removed in commit 168035, but I missed this bit).
llvm-svn: 168292
Duncan Sands [Sun, 18 Nov 2012 19:27:01 +0000 (19:27 +0000)]
Fix PR14060, an infinite loop in reassociate. The problem was that one of the
operands of the expression being written was wrongly thought to be reusable as
an inner node of the expression resulting in it turning up as both an inner node
*and* a leaf, creating a cycle in the def-use graph. This would have caused the
verifier to blow up if things had gotten that far, however it managed to provoke
an infinite loop first.
llvm-svn: 168291
Dmitri Gribenko [Sun, 18 Nov 2012 18:42:18 +0000 (18:42 +0000)]
SystemLibrary.rst: remove reference to a bug that was closed long time ago
llvm-svn: 168290
Dmitri Gribenko [Sun, 18 Nov 2012 18:40:21 +0000 (18:40 +0000)]
Documentation: convert SystemLibrary documentation to reST
llvm-svn: 168289
Dmitri Gribenko [Sun, 18 Nov 2012 18:28:14 +0000 (18:28 +0000)]
Documentation: remove a copy of the FileCheck man page from TestingGuide
llvm-svn: 168288
Dmitri Gribenko [Sun, 18 Nov 2012 10:35:18 +0000 (10:35 +0000)]
Documentation: use a :doc: link instead of an absolute link.
llvm-svn: 168286
Dmitri Gribenko [Sun, 18 Nov 2012 10:32:14 +0000 (10:32 +0000)]
Documentation: fix broken link.
llvm-svn: 168285
Andrew Trick [Sun, 18 Nov 2012 06:21:03 +0000 (06:21 +0000)]
Use a full triple for a PPC test case for asm syntax.
llvm-svn: 168283
NAKAMURA Takumi [Sun, 18 Nov 2012 06:16:32 +0000 (06:16 +0000)]
MCJIT: [cygming] Give noop to __main also in RecordingMemoryManger. It is emitted in @main().
XFAIL(s) can be removed.
llvm-svn: 168282
NAKAMURA Takumi [Sun, 18 Nov 2012 06:16:21 +0000 (06:16 +0000)]
test/ExecutionEngine/MCJIT/stubs-remote.ll: Prune DOSish CRLF.
llvm-svn: 168281
Nick Lewycky [Sun, 18 Nov 2012 05:39:39 +0000 (05:39 +0000)]
Don't try to calculate the alignment of an unsigned type. Fixes PR14371!
llvm-svn: 168280
Sebastian Pop [Sun, 18 Nov 2012 04:34:31 +0000 (04:34 +0000)]
utils: use rmdir instead of rm to remove empty dirs
as suggested by Sven Verdoolaege <skimo-polly@kotnet.org>
llvm-svn: 168279
NAKAMURA Takumi [Sun, 18 Nov 2012 02:34:33 +0000 (02:34 +0000)]
clang/test/Sema/warn-documentation.cpp: Try to fix up the testcase in r168277.
llvm-svn: 168278
Dmitri Gribenko [Sun, 18 Nov 2012 00:30:31 +0000 (00:30 +0000)]
Documentation parsing: propely handle a lone '\endverbatim' and emit a warning.
We actually used to assert on this.
Thanks to NAKAMURA Takumi for noticing this!
llvm-svn: 168277
Dmitri Gribenko [Sat, 17 Nov 2012 23:53:22 +0000 (23:53 +0000)]
Fix Doxygen comment start sequence.
llvm-svn: 168276
Sean Silva [Sat, 17 Nov 2012 23:25:33 +0000 (23:25 +0000)]
docs: CodingStandards should follow the coding standards.
Some variables in code examples were not LikeThis.
llvm-svn: 168275
Andy Gibbs [Sat, 17 Nov 2012 22:17:28 +0000 (22:17 +0000)]
Clean up code according to coding standards
llvm-svn: 168274
Benjamin Kramer [Sat, 17 Nov 2012 22:12:59 +0000 (22:12 +0000)]
Bump sphinx config to 3.3.
llvm-svn: 168273
Benjamin Kramer [Sat, 17 Nov 2012 22:01:08 +0000 (22:01 +0000)]
Kick off 3.3 cycle for LLVM trunk.
llvm-svn: 168272
Sean Silva [Sat, 17 Nov 2012 21:01:44 +0000 (21:01 +0000)]
docs: Add link to HowToSetUpLLVMStyleRTTI
llvm-svn: 168271
Fariborz Jahanian [Sat, 17 Nov 2012 20:53:53 +0000 (20:53 +0000)]
objective-C: Do not issue deprecated warning about implementation
of a deprecated method in original class (or category), only
in overrides. // rdar://
12717705
llvm-svn: 168270
Nico Weber [Sat, 17 Nov 2012 20:25:54 +0000 (20:25 +0000)]
Fix crash on end-of-file after \ in a char literal, fixes PR14369.
This makes LexCharConstant() look more like LexStringLiteral(), which doesn't
have this bug. Add tests for eof after \ for several other cases.
llvm-svn: 168269
Andy Gibbs [Sat, 17 Nov 2012 19:18:27 +0000 (19:18 +0000)]
Prevent premature macro expansion in __has_builtin, __has_feature,
__has_attribute, __has_extension, making them behave more akin to
conventional macros.
llvm-svn: 168268
Andy Gibbs [Sat, 17 Nov 2012 19:16:52 +0000 (19:16 +0000)]
Made the "expected string literal" diagnostic more expressive
llvm-svn: 168267
Andy Gibbs [Sat, 17 Nov 2012 19:15:38 +0000 (19:15 +0000)]
Refactored duplicate string literal lexing code within Preprocessor, into a
common LexStringLiteral function. In doing so, some consistency problems have
been ironed out (e.g. where the first token in the string literal was lexed
with macro expansion, but subsequent ones were not) and also an erroneous
diagnostic has been corrected.
LexStringLiteral is complemented by a FinishLexStringLiteral function which
can be used in the situation where the first token of the string literal has
already been lexed.
llvm-svn: 168266
Andy Gibbs [Sat, 17 Nov 2012 19:14:53 +0000 (19:14 +0000)]
Fix handling of invalid uses of the __has_warning builtin macro
llvm-svn: 168265
James Molloy [Sat, 17 Nov 2012 17:59:44 +0000 (17:59 +0000)]
Typo
llvm-svn: 168263
James Molloy [Sat, 17 Nov 2012 17:56:30 +0000 (17:56 +0000)]
Add a new function to ConstantExpr - getAsInstruction. This returns its Instruction* corollary, which may be useful if a user
wishes to transform a ConstantExpr so that one of its operands is no longer constant.
llvm-svn: 168262
Benjamin Kramer [Sat, 17 Nov 2012 17:30:55 +0000 (17:30 +0000)]
Enable inlining of 4 byte atomic ops on ppc32, 8 byte atomic ops on ppc64.
Also fixes a bit/byte mismatch when checking if a target supports atomic ops of a certain size.
llvm-svn: 168260
Benjamin Kramer [Sat, 17 Nov 2012 13:49:37 +0000 (13:49 +0000)]
Plug a memory leak in the GCOV profiling emitter, which never released the edge table memory.
llvm-svn: 168259
Benjamin Kramer [Sat, 17 Nov 2012 09:14:31 +0000 (09:14 +0000)]
Remove copy ctor that provides no value over the default.
It's also simpler to just copy the words than mangling bits like this ctor did.
llvm-svn: 168258
Ted Kremenek [Sat, 17 Nov 2012 07:18:30 +0000 (07:18 +0000)]
Further reduce "-fsyntax-only -Wuninitialized" time on sqlite3.c by another 2.5% using intelligent pruning of blocks during the final reporting pass.
llvm-svn: 168257
Pawel Wodnicki [Sat, 17 Nov 2012 06:38:44 +0000 (06:38 +0000)]
really fix permissions
llvm-svn: 168256
Pawel Wodnicki [Sat, 17 Nov 2012 06:35:19 +0000 (06:35 +0000)]
fix permissions
llvm-svn: 168255
Pawel Wodnicki [Sat, 17 Nov 2012 06:24:37 +0000 (06:24 +0000)]
adding whose code is it anywa tools
llvm-svn: 168254
Joe Abbey [Sat, 17 Nov 2012 05:13:16 +0000 (05:13 +0000)]
Removing utf-8 smart quote and trailing whitespace
llvm-svn: 168253
Sebastian Pop [Sat, 17 Nov 2012 04:57:41 +0000 (04:57 +0000)]
utils: remove the isl directory after cloning cloog
This fixes my previous commit, thanks to "Dmitry N. Mikushin"
<maemarcus@gmail.com>
llvm-svn: 168252
Joe Abbey [Sat, 17 Nov 2012 04:54:22 +0000 (04:54 +0000)]
Suppressing the 'direct base ‘{anonymous}::S1’ inaccessible in ‘{anonymous}::D9’
due to ambiguity' warning.
llvm-svn: 168251
Sebastian Pop [Sat, 17 Nov 2012 03:43:48 +0000 (03:43 +0000)]
utils: remove existing cloog and isl dirs before git cloning
Patch adapted from "Dmitry N. Mikushin" <maemarcus@gmail.com>.
llvm-svn: 168250
Andrew Trick [Sat, 17 Nov 2012 03:39:26 +0000 (03:39 +0000)]
Silence the buildbots for this test while I figure out the triple
llvm-svn: 168249
Andrew Trick [Sat, 17 Nov 2012 03:35:11 +0000 (03:35 +0000)]
Broaden isSchedulingBoundary to check aliases of SP.
On PPC the stack pointer is X1, but ADJCALLSTACK writes R1.
Fixes PR14315: Register regmask dependency problem with misched.
llvm-svn: 168248
Hal Finkel [Sat, 17 Nov 2012 02:33:15 +0000 (02:33 +0000)]
Phi speculation improvement for BasicAA
This is a partial solution to PR14351. It removes some of the special
significance of the first incoming phi value in the phi aliasing checking logic
in BasicAA. In the context of a loop, the old logic assumes that the first
incoming value is the interesting one (meaning that it is the one that comes
from outside the loop), but this is often not the case. With this change, we
now test first the incoming value that comes from a block other than the parent
of the phi being tested.
llvm-svn: 168245
Richard Smith [Sat, 17 Nov 2012 02:26:54 +0000 (02:26 +0000)]
Per agreement with Doug, take ownership of Clang's libSema.
llvm-svn: 168244
Ted Kremenek [Sat, 17 Nov 2012 02:00:00 +0000 (02:00 +0000)]
Switch -Wuninitialized to use a reverse-post order traversal as
an initial baseline for enqueued blocks, but use a simple DFS stack
for propagating changes quickly up back edges.
This provides a 3.5% reduction in -fsyntax-only time on sqlite3.c.
llvm-svn: 168241
Eli Friedman [Sat, 17 Nov 2012 01:52:46 +0000 (01:52 +0000)]
Mark FP_EXTEND form v2f32 to v2f64 as "expand" for ARM NEON. Patch by Pete Couperus.
llvm-svn: 168240
Eli Friedman [Sat, 17 Nov 2012 01:43:10 +0000 (01:43 +0000)]
Add missing features for misc x86 CPUs to CPU feature translation. Patch by Jung-uk Kim.
llvm-svn: 168239
Jason Molenda [Sat, 17 Nov 2012 01:41:04 +0000 (01:41 +0000)]
Han Ming's commit in r168228 had a bunch of 4-space tabs
in the source files. Expand to spaces. No content changes,
just whitespace.
llvm-svn: 168238
Eli Friedman [Sat, 17 Nov 2012 01:16:19 +0000 (01:16 +0000)]
Clean up X86 target feature translation code slightly. No intended functional change. Patch by Jung-uk Kim.
llvm-svn: 168237
Chad Rosier [Sat, 17 Nov 2012 00:42:06 +0000 (00:42 +0000)]
[fast-isel] Add the -verify-machineinstrs to these test cases. The remaining
test cases require fixes to fast-isel before the verifier can be enabled.
Part of rdar://
12594152
llvm-svn: 168233
Han Ming Ong [Sat, 17 Nov 2012 00:33:14 +0000 (00:33 +0000)]
Follow up on <rdar://
12720514>. Removed commented out code.
llvm-svn: 168232
Nadav Rotem [Sat, 17 Nov 2012 00:27:03 +0000 (00:27 +0000)]
LoopVectorizer: Add initial support for pointer induction variables (for example: *dst++ = *src++).
At the moment we still require to have an integer induction variable (for example: i++).
llvm-svn: 168231
Akira Hatanaka [Sat, 17 Nov 2012 00:25:41 +0000 (00:25 +0000)]
Initial implementation of MipsTargetLowering::isLegalAddressingMode.
llvm-svn: 168230
Weiming Zhao [Sat, 17 Nov 2012 00:23:35 +0000 (00:23 +0000)]
Rename methods like PairSRegs() to createSRegpairNode() to meet our coding
style requirement.
llvm-svn: 168229
Han Ming Ong [Sat, 17 Nov 2012 00:21:04 +0000 (00:21 +0000)]
<rdar://problem/
12720514> Sub-TLF: Provide service to profile the inferior
This allows client to query profiling states on the inferior.
llvm-svn: 168228
Evan Cheng [Sat, 17 Nov 2012 00:05:06 +0000 (00:05 +0000)]
Teach SROA rewriteVectorizedStoreInst to handle cases when the loaded value is narrower than the stored value. rdar://
12713675
llvm-svn: 168227
Andrew Kaylor [Sat, 17 Nov 2012 00:02:50 +0000 (00:02 +0000)]
Marking remote mcjit tests as XFAIL for cygwin (hopefully only temporarily).
llvm-svn: 168226
Andrew Kaylor [Fri, 16 Nov 2012 23:56:48 +0000 (23:56 +0000)]
Claim ownership of MCJIT
llvm-svn: 168225
Greg Clayton [Fri, 16 Nov 2012 23:50:32 +0000 (23:50 +0000)]
Added symbols page for Mac OS X that explains how DebugSymbols.framework can be customized.
llvm-svn: 168224
Eric Christopher [Fri, 16 Nov 2012 23:44:11 +0000 (23:44 +0000)]
Add some basic support for the fission addr forms to DebugInfo.
llvm-svn: 168223
Chad Rosier [Fri, 16 Nov 2012 23:41:41 +0000 (23:41 +0000)]
Typo.
llvm-svn: 168222
Andrew Kaylor [Fri, 16 Nov 2012 23:38:16 +0000 (23:38 +0000)]
Marking remote mcjit tests as XFAIL for mingw32 (hopefully only temporarily).
llvm-svn: 168221
Filipe Cabecinhas [Fri, 16 Nov 2012 23:18:41 +0000 (23:18 +0000)]
Fix expected error message in test.
llvm-svn: 168220
Eric Christopher [Fri, 16 Nov 2012 23:04:31 +0000 (23:04 +0000)]
Add constant definitions for fission dwarf attributes, forms, etc.
llvm-svn: 168218
Bill Wendling [Fri, 16 Nov 2012 23:03:00 +0000 (23:03 +0000)]
Revert r167799. It's not really correct, and it doesn't fix the problem that it was intended to fix.
llvm-svn: 168217
Chad Rosier [Fri, 16 Nov 2012 22:49:27 +0000 (22:49 +0000)]
Claim the driver.
llvm-svn: 168215
Dmitri Gribenko [Fri, 16 Nov 2012 22:34:07 +0000 (22:34 +0000)]
Testcase overriding-ftemplate-comments.cpp: use [[@LINE]] to make it less fragile.
llvm-svn: 168213
Chad Rosier [Fri, 16 Nov 2012 22:31:39 +0000 (22:31 +0000)]
[driver] Add the missing TY_PP_ObjCXX_Alias case to the isCXX function.
This was causing different behavior when using -x objective-c++-cpp-output as
compared to -x objc++-cpp-output. Specifically, the driver was not adding the
-fcxx-exceptions flag in the latter case.
rdar://
12680312
llvm-svn: 168212
Benjamin Kramer [Fri, 16 Nov 2012 22:22:20 +0000 (22:22 +0000)]
Remove default public copy ctors.
They are just useless and prevent SmallVector from picking an optimized codepath
for memcpyable elements.
llvm-svn: 168211
Andrew Kaylor [Fri, 16 Nov 2012 22:21:04 +0000 (22:21 +0000)]
Marking remote mcjit tests as XFAIL for ARM (hopefully only temporarily).
llvm-svn: 168210
Howard Hinnant [Fri, 16 Nov 2012 22:17:23 +0000 (22:17 +0000)]
istreambuf_iterator increment should call sbumpc instead of snextc. Patch
by Kimball Thurston. This fixes http://llvm.org/bugs/show_bug.cgi?id=14358.
llvm-svn: 168209
Jakub Staszak [Fri, 16 Nov 2012 22:07:00 +0000 (22:07 +0000)]
Remove trailing spaces.
llvm-svn: 168208
Weiming Zhao [Fri, 16 Nov 2012 21:55:34 +0000 (21:55 +0000)]
Remove hard coded registers in ARM ldrexd and strexd instructions
This patch replaces the hard coded GPR pair [R0, R1] of
Intrinsic:arm_ldrexd and [R2, R3] of Intrinsic:arm_strexd with
even/odd GPRPair reg class.
Similar to the lowering of atomic_64 operation.
llvm-svn: 168207
Dmitri Gribenko [Fri, 16 Nov 2012 21:43:31 +0000 (21:43 +0000)]
StmtDumper: remove incomplete support for limiting the maximum dump depth.
There are better ways of limiting the amount of information if there is a need
for that.
Patch by Philip Craig.
llvm-svn: 168206
Greg Clayton [Fri, 16 Nov 2012 21:36:10 +0000 (21:36 +0000)]
<rdar://problem/
12238339>
Make sure architectures are obeyed for skinny mach files.
llvm-svn: 168205
Greg Clayton [Fri, 16 Nov 2012 21:35:22 +0000 (21:35 +0000)]
Fix lldb to compile with top of tree LLVM/clang.
llvm-svn: 168204
Andrew Trick [Fri, 16 Nov 2012 21:33:38 +0000 (21:33 +0000)]
Use array_pod_sort instead of std::sort.
llvm-svn: 168203
Andrew Trick [Fri, 16 Nov 2012 21:33:35 +0000 (21:33 +0000)]
typo
llvm-svn: 168202
Richard Osborne [Fri, 16 Nov 2012 21:26:36 +0000 (21:26 +0000)]
Add myself as owner of XCore Backend.
llvm-svn: 168201
Anton Korobeynikov [Fri, 16 Nov 2012 21:15:20 +0000 (21:15 +0000)]
Make sure FABS on v2f32 and v4f32 is legal on ARM NEON
This fixes PR14359
llvm-svn: 168200
Richard Osborne [Fri, 16 Nov 2012 21:12:38 +0000 (21:12 +0000)]
Fix handling of aliases to functions.
An alias to a function should use pc relative addressing.
llvm-svn: 168199
Justin Holewinski [Fri, 16 Nov 2012 21:03:51 +0000 (21:03 +0000)]
[NVPTX] Order global variables in def-use order before emiting them in the final assembly
llvm-svn: 168198
Justin Holewinski [Fri, 16 Nov 2012 21:03:47 +0000 (21:03 +0000)]
Preserve address space of forward-referenced global variables in the LL parser
Before, the parser would assert on the following code:
@a2 = global i8 addrspace(1)* @a
@a = addrspace(1) global i8 0
because the type of @a was "i8*" instead of "i8 addrspace(1)*" when parsing
the initializer for @a2.
llvm-svn: 168197
Duncan Sands [Fri, 16 Nov 2012 20:53:08 +0000 (20:53 +0000)]
Make this easier to understand, as suggested by Chandler.
llvm-svn: 168196
Hemant Kulkarni [Fri, 16 Nov 2012 20:51:32 +0000 (20:51 +0000)]
Added program header emission
llvm-svn: 168195