- Jun 26, 2013
-
-
Andy Gibbs authored
Where a source tree is complete with lld, lldb and polly, it may not be possible to use cmake to configure build scripts if the host compiler it not capable of compiling these sub-projects. This change makes it possible to first build a bootstrap clang compiler when can then be used to build a complete llvm toolchain. An example bootstrap build sequence could be as follows: $ mkdir bootstrap $ cd bootstrap $ cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_PREFIX_PATH:STRING=$(pwd) -DLLVM_TARGETS_TO_BUILD:STRING=host -DLLVM_INCLUDE_TOOLS:STRING=bootstrap-only ../source $ make clang # build clang only for host $ cd .. $ export CC=$(realpath bootstrap/bin)/clang $ export CXX=$(realpath bootstrap/bin)/clang++ $ mkdir final $ cd final $ cmake -G 'Unix Makefiles' ../source $ make all check-all llvm-svn: 184924
-
Andy Gibbs authored
llvm-svn: 184923
-
Rafael Espindola authored
llvm-svn: 184920
-
Rafael Espindola authored
llvm-svn: 184919
-
Rafael Espindola authored
llvm-svn: 184917
-
Rafael Espindola authored
llvm-svn: 184916
-
Rafael Espindola authored
I will remove the V1 version as soon as I change clang in the next commit. llvm-svn: 184914
-
Rafael Espindola authored
llvm-svn: 184910
-
Nick Lewycky authored
debug statements to add a missing newline. Also canonicalize to '\n' instead of "\n"; the latter calls a function with a loop the former does not. llvm-svn: 184897
-
Adrian Prantl authored
llvm-svn: 184892
-
Jakob Stoklund Olesen authored
Prefer using RPO.lookup() instead of RPO[] which can mutate the map. llvm-svn: 184891
-
Nadav Rotem authored
llvm-svn: 184888
-
- Jun 25, 2013
-
-
Jakob Stoklund Olesen authored
This is easier to read than the internal fixed-point representation. If anybody knows the correct algorithm for converting fixed-point numbers to base 10, feel free to fix it. llvm-svn: 184881
-
Tom Stellard authored
llvm-svn: 184880
-
Tom Stellard authored
This patch modifies TableGen to generate a function in ${TARGET}GenInstrInfo.inc called getNamedOperandIdx(), which can be used to look up indices for operands based on their names. In order to activate this feature for an instruction, you must set the UseNamedOperandTable bit. For example, if you have an instruction like: def ADD : TargetInstr <(outs GPR:$dst), (ins GPR:$src0, GPR:$src1)>; You can look up the operand indices using the new function, like this: Target::getNamedOperandIdx(Target::ADD, Target::OpName::dst) => 0 Target::getNamedOperandIdx(Target::ADD, Target::OpName::src0) => 1 Target::getNamedOperandIdx(Target::ADD, Target::OpName::src1) => 2 The operand names are case sensitive, so $dst and $DST are considered different operands. This change is useful for R600 which has instructions with a large number of operands, many of which model single bit instruction configuration values. These configuration bits are common across most instructions, but may have a different operand index depending on the instruction type. It is useful to have a convenient way to look up the operand indices, so these bits can be generically set on any instruction. llvm-svn: 184879
-
Arnold Schwaighofer authored
radar://14057959 llvm-svn: 184872
-
Bob Wilson authored
When a 1-element vector alloca is promoted, a store instruction can often be rewritten without converting the value to a scalar and using an insertelement instruction to stuff it into the new alloca. This patch just adds a check to skip that conversion when it is unnecessary. This turns out to be really important for some ARM Neon operations where <1 x i64> is used to get around the fact that i64 is not a legal type. llvm-svn: 184870
-
Manman Ren authored
llvm-svn: 184866
-
Bill Wendling authored
llvm-svn: 184864
-
Ulrich Weigand authored
[PowerPC] Support @got modifier Add VK_... values and relocation types necessary to support the @got family of modifiers. Used by the asm parser only. llvm-svn: 184860
-
Rafael Espindola authored
llvm-svn: 184853
-
Rafael Espindola authored
llvm-svn: 184852
-
Aaron Watry authored
By default, we expand these operations for both EG and SI. Move the duplicated code into a common space for now. If the targets ever actually implement these operations as instructions, we can override that in the relevant target. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184848
-
Aaron Watry authored
Note: Only adding test for evergreen, not SI yet. When I attempted to expand vselect for SI, I got the following: llc: /home/awatry/src/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:522: llvm::SDValue llvm::DAGTypeLegalizer::PromoteIntRes_SETCC(llvm::SDNode*): Assertion `SVT.isVector() == N->getOperand(0).getValueType().isVector() && "Vector compare must return a vector result!"' failed. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184847
-
Aaron Watry authored
Add test cases for both vector sizes on SI and also add v2i32 test for EG. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184846
-
Aaron Watry authored
No test/expansion for SI has been added yet. Attempts to expand this operation for SI resulted in a stacktrace in (IIRC) LegalizeIntegerTypes which was complaining about vector comparisons being required to return a vector type. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184845
-
Aaron Watry authored
Also add lit test for both cases on SI, and v2i32 for evergreen. Note: I followed the guidance of the v4i32 EG check... UREM produces really complex code, so let's just check that the instruction was lowered successfully. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184844
-
Aaron Watry authored
Also add lit test for both cases on SI, and v2i32 for evergreen. Note: I followed the guidance of the v4i32 EG check... UDIV produces really complex code, so let's just check that the instruction was lowered successfully. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184843
-
Aaron Watry authored
Also add lit test for both cases on SI, and v2i32 for evergreen. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184842
-
Aaron Watry authored
Also add lit test for both cases on SI, and v2i32 for evergreen. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184841
-
Aaron Watry authored
Also add lit test for both cases on SI, and v2i32 for evergreen. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184840
-
Aaron Watry authored
Also add lit test for both cases on SI, and v2i32 for evergreen. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184839
-
Aaron Watry authored
Also add lit test for both cases on SI, and v2i32 for evergreen. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184838
-
Aaron Watry authored
Also add lit test for both cases on SI, and v2i32 for evergreen. Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 184837
-
Benjamin Kramer authored
This is a band-aid to fix the most severe regressions we're seeing from basing spill decisions on block frequencies, until we have a better solution. llvm-svn: 184835
-
Ulrich Weigand authored
[PowerPC] Add extended rotate/shift mnemonics This adds all missing extended rotate/shift mnemonics to the asm parser. llvm-svn: 184834
-
Ulrich Weigand authored
[PowerPC] Add rldcr/rldic instructions This adds pattern for the rldcr and rldic instructions (the last instruction from the rotate/shift family that were missing). They are currently used only by the asm parser. llvm-svn: 184833
-
Ulrich Weigand authored
[PowerPC] Add extended subtract mnemonics This adds support for the extended subtract mnemonics to the asm parser: subi subis subic subic. sub sub. subc subc. llvm-svn: 184832
-
Justin Holewinski authored
llvm-svn: 184831
-
Nadav Rotem authored
llvm-svn: 184827
-