- Apr 22, 2015
-
-
Lang Hames authored
llvm-svn: 235417
-
Daniel Berlin authored
Summary: This lets us use range based for loops. Reviewers: chandlerc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9169 llvm-svn: 235416
-
Jingyue Wu authored
Summary: With D9096 and D9101, there's no need to run DCE after SLSR and SeparateConstOffsetFromGEP. Test Plan: no regression Reviewers: jholewinski, meheff Subscribers: jholewinski, llvm-commits Differential Revision: http://reviews.llvm.org/D9172 llvm-svn: 235415
-
Sanjoy Das authored
The comment was made stale in r171735. llvm-svn: 235414
-
Duncan P. N. Exon Smith authored
Remove the `DIArray` and `DITypeArray` typedefs, preferring the underlying types (`DebugNodeArray` and `MDTypeRefArray`, respectively). llvm-svn: 235413
-
Duncan P. N. Exon Smith authored
An upcoming LLVM commit will remove the `DIArray` and `DITypeArray` typedefs that shadow `DebugNodeArray` and `MDTypeRefArray`, respectively. Use those types directly. llvm-svn: 235412
-
Sergey Matveev authored
llvm-svn: 235411
-
Jingyue Wu authored
Summary: After we rewrite a candidate, the instructions used by the old form may become unused. This patch cleans up these unused instructions so that we needn't run DCE after SLSR. Test Plan: removed -dce in all the SLSR tests Reviewers: broune, meheff Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9101 llvm-svn: 235410
-
Jingyue Wu authored
Summary: so that we needn't run DCE after this pass. Test Plan: removed -dce from the commandline in split-gep.ll and split-gep-and-gvn.ll Reviewers: meheff Subscribers: llvm-commits, HaoLiu, hfinkel, jholewinski Differential Revision: http://reviews.llvm.org/D9096 llvm-svn: 235409
-
Yaron Keren authored
llvm-svn: 235408
-
Duncan P. N. Exon Smith authored
Use `MDType*` instead of `MDNode*` in `DITypeIdentifierMap`, since all the members should be types. llvm-svn: 235407
-
Daniel Berlin authored
Summary: MemorySSA uses this algorithm as well, and this enables us to reuse the code in both places. There are no actual algorithm or datastructure changes in here, just code movement. Reviewers: qcolombet, chandlerc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9118 llvm-svn: 235406
-
Duncan P. N. Exon Smith authored
Probably these forward declarations were once useful, but they certainly don't belong here now. llvm-svn: 235405
-
Duncan P. N. Exon Smith authored
Delete the remaining subclasses of (the already deleted) `DIDescriptor`. Part of PR23080. llvm-svn: 235404
-
Duncan P. N. Exon Smith authored
An upcoming LLVM commit will delete all the remaining subclasses of (the already deleted) `DIDescriptor`. Stop using them. llvm-svn: 235403
-
Alexey Samsonov authored
llvm-svn: 235402
-
Artem Belevich authored
r235398 was causing buildbot break due to missing Makefile changes. llvm-svn: 235401
-
Duncan P. N. Exon Smith authored
Remove early returns for when `getVariable()` is null, and just assert that it never happens. The Verifier already confirms that there's a valid variable on these intrinsics, so we should assume the debug info isn't broken. I also updated a check for a `!dbg` attachment, which the Verifier similarly guarantees. llvm-svn: 235400
-
Reid Kleckner authored
Keep the old SEH fan-in lowering on by default for now, since projects rely on it. This will make it easy to test this change with a simple flag flip. llvm-svn: 235399
-
Artem Belevich authored
Added cuda_builtin_vars.h which implements built-in CUDA variables using __declattr(property). Fields of built-in variables (except for warpSize) are implemented using __declattr(property) which replaces read/write of a member field with a call to a getter/setter member function, in this case with appropriate NVPTX builtin. Added a test case to check diagnostics on attempt to construct or improperly access a built-in variable. Differential Revision: http://reviews.llvm.org/D9064 llvm-svn: 235398
-
Ulrich Weigand authored
The GCC construct __attribute__((aligned)) is defined to set alignment to "the default alignment for the target architecture" according to the GCC documentation: The default alignment is sufficient for all scalar types, but may not be enough for all vector types on a target that supports vector operations. The default alignment is fixed for a particular target ABI. clang currently hard-coded an alignment of 16 bytes for that construct, which is correct on some platforms (including X86), but wrong on others (including SystemZ). Since this value is ABI-relevant, it is important to get correct for compatibility purposes. This patch adds a new TargetInfo member "DefaultAlignForAttributeAligned" that targets can set to the appropriate default __attribute__((aligned)) value. Note that I'm deliberately *not* using the existing "SuitableAlign" value, which is used to set the pre-defined macro __BIGGEST_ALIGNMENT__, since those two values may not be the same on all platforms. In fact, on X86, __attribute__((aligned)) always uses 16-byte alignment, while __BIGGEST_ALIGNMENT__ may be larger if AVX-2 or AVX-512 are supported. (This is actually not yet correctly implemented in clang either.) The patch provides a value for DefaultAlignForAttributeAligned only for SystemZ, and leaves the default for all other targets at 16, which means no visible change in behavior on all other targets. (The value is still wrong for some other targets, but I'd prefer to leave it to the target maintainers for those platforms to fix.) llvm-svn: 235397
-
Ulrich Weigand authored
Code in CodeGenModule::GetOrCreateLLVMGlobal that sets up GlobalValue object for LLVM external symbols has this comment: // FIXME: This code is overly simple and should be merged with other global // handling. One part does seems to be "overly simple" currently is that this code never sets any alignment info on the GlobalValue, so that the emitted IR does not have any align attribute on external globals. This can lead to unnecessarily inefficient code generation. This patch adds a GV->setAlignment call to set alignment info. llvm-svn: 235396 -
Ulrich Weigand authored
SystemZ prefers to align all global variables to two bytes, which is implemented by setting the TargetInfo member MinGlobalAlign. However, for compatibility with existing compilers this should *not* change the ABI alignment value as retrieved via __alignof__, which it currently does. This patch fixes the issue by having ASTContext::getDeclAlign ignore the MinGlobalAlign setting in the ForAlignof case. Since SystemZ is the only platform setting MinGlobalAlign, this should cause no change for any other target. llvm-svn: 235395
-
Matthias Braun authored
There doesn't seem to be a reason to perform this target ISD node matching in an DAGCombine, moving it to lowering fixes PR23296. Differential Revision: http://reviews.llvm.org/D9137 llvm-svn: 235394
-
Simon Atanasyan authored
This method returns _flags field which has `uint64_t` type. Now the field's type and the method's return type are consistent. llvm-svn: 235393
-
Simon Atanasyan authored
The `OutputSection::appendSection()` method always gets a pointer to the `Section` class descendants. So it is not necessary to keep them in the vector of `Chunk` pointers. No functional changes. llvm-svn: 235392
-
Simon Atanasyan authored
llvm-svn: 235391
-
Simon Atanasyan authored
No functional changes. llvm-svn: 235390
-
Bob Wilson authored
This just changes a few places to use a slightly more formal style. llvm-svn: 235389
-
Davide Italiano authored
llvm-svn: 235387
-
- Apr 21, 2015
-
-
Reid Kleckner authored
llvm-svn: 235386
-
Elena Demikhovsky authored
fixed encoding of VPMOVM2x. llvm-svn: 235385
-
Tobias Grosser authored
I just learned that target triples prevent test cases to be run on other architectures. Polly test cases are until now sufficiently target independent to not require any target triples. Hence, we drop them. llvm-svn: 235384
-
Elena Demikhovsky authored
llvm-svn: 235383
-
Toma Tabacu authored
Summary: This directive is exactly the same as .asciz, except it's only used by MIPS. It is used to store null terminated strings in object files. Reviewers: rafael, dsanders, echristo Reviewed By: dsanders, echristo Subscribers: echristo, llvm-commits Differential Revision: http://reviews.llvm.org/D7530 llvm-svn: 235382
-
Tobias Grosser authored
llvm-svn: 235381
-
Tobias Grosser authored
In Polly we used both the term 'scattering' and the term 'schedule' to describe the execution order of a statement without actually distinguishing between them. We now uniformly use the term 'schedule' for the execution order. This corresponds to the terminology of isl. History: CLooG introduced the term scattering as the generated code can be used as a sequential execution order (schedule) or as a parallel dimension enumerating different threads of execution (placement). In Polly and/or isl the term placement was never used, but we uniformly refer to an execution order as a schedule and only later introduce parallelism. When doing so we do not talk about about specific placement dimensions. llvm-svn: 235380
-
Jozef Kolek authored
Implement CACHE and PREF instructions using mapping. Differential Revision: http://reviews.llvm.org/D8893 llvm-svn: 235379
-
Tobias Grosser authored
This change is a step towards using a single isl_schedule object throughout Polly. At the moment the schedule is just constructed from the flat isl_union_map that defines the schedule. Later we will obtain it directly from the scop and potentially obtain a schedule with a non-trivial internal structure that will allow faster dependence analysis. llvm-svn: 235378
-
Vasileios Kalintiris authored
Reviewers: dsanders Differential Revision: http://reviews.llvm.org/D7947 llvm-svn: 235377
-