Colin LeMahieu
816ef086f6
[Hexagon] [NFC] Alphabetizing cmake files.
...
llvm-svn: 221370
2014-11-05 17:38:48 +00:00
Colin LeMahieu
5241881bbc
[Hexagon] Reverting 220584 to address ASAN errors.
...
llvm-svn: 221210
2014-11-04 00:14:36 +00:00
Sid Manning
326f8af463
Handle ctor/init_array initialization.
...
Hexagon was not calling InitializeELF and could not select between
ctors and init_array.
Phabricator revision: http://reviews.llvm.org/D6061
llvm-svn: 221156
2014-11-03 14:56:05 +00:00
NAKAMURA Takumi
729be14435
Prune CRLF.
...
llvm-svn: 220678
2014-10-27 12:37:26 +00:00
Colin LeMahieu
838307b31f
[Hexagon] Resubmission of 220427
...
Modified library structure to deal with circular dependency between HexagonInstPrinter and HexagonMCInst.
Adding encoding bits for add opcode.
Adding llvm-mc tests.
Removing unit tests.
http://reviews.llvm.org/D5624
llvm-svn: 220584
2014-10-24 19:00:32 +00:00
NAKAMURA Takumi
5b6f789d7a
Hexagon/Disassembler/LLVMBuild.txt: Update libdeps.
...
llvm-svn: 220482
2014-10-23 11:32:16 +00:00
NAKAMURA Takumi
f459febb15
Hexagon/LLVMBuild.txt: Prune CRLF.
...
llvm-svn: 220481
2014-10-23 11:32:03 +00:00
NAKAMURA Takumi
bd20251a4a
[CMake] Prune CRLF in CMakeLists.txt(s).
...
llvm-svn: 220480
2014-10-23 11:31:50 +00:00
NAKAMURA Takumi
504bbf91cd
Revert r220427, "[Hexagon] Adding encoding bits for add opcode."
...
It brought cyclic dependecy between HexagonAsmPrinter and HexagonDesc.
llvm-svn: 220478
2014-10-23 11:31:22 +00:00
Colin LeMahieu
73a51a1a68
[Hexagon] Adding encoding bits for add opcode.
...
Adding llvm-mc tests.
Removing unit tests.
http://reviews.llvm.org/D5624
llvm-svn: 220427
2014-10-22 20:58:35 +00:00
Hans Wennborg
db08566588
Fix VS2012 build; C++11 type aliases are not supported.
...
llvm-svn: 220399
2014-10-22 17:47:49 +00:00
Colin LeMahieu
b424cb1e57
Ammending 220393 - Removing unused decoding tables.
...
llvm-svn: 220397
2014-10-22 17:23:01 +00:00
Colin LeMahieu
9950d5c59a
Ammending 220393 - Removing unused functions.
...
llvm-svn: 220396
2014-10-22 17:03:19 +00:00
Colin LeMahieu
88ebb9e2da
[Hexagon] Adding basic disassembler.
...
Marking all instructions as CodeGenOnly since encoding bits are not set yet.
http://reviews.llvm.org/D5829?vs=on&id=15023&whitespace=ignore-all#toc
llvm-svn: 220393
2014-10-22 16:49:14 +00:00
Colin LeMahieu
7055365e77
Test commit
...
Fixing brief comment.
llvm-svn: 220299
2014-10-21 16:03:10 +00:00
Sid Manning
c374ac97c8
Remove unnecessary else.
...
llvm-svn: 220200
2014-10-20 13:08:19 +00:00
Sid Manning
a002296427
Wrong attribute. LLVM_ATTRIBUTE_UNUSED not LLVM_ATTRIBUTE_USED
...
This original fix for the build break was correct. LLVM_ATTRIBUTE_USED
removes the warning message because it keeps the function in the object
file. LLVM_ATTRIBUTE_UNUSED indicates that it may or may not be used
depending on build settings.
llvm-svn: 219846
2014-10-15 20:41:17 +00:00
Sid Manning
2ceaeb6baf
Wrong attribute. LLVM_ATTRIBUTE_USED not LLVM_ATTRIBUTE_UNUSED
...
llvm-svn: 219837
2014-10-15 19:32:52 +00:00
Sid Manning
74cd020fca
Add LLVM_ATTRIBUTE_UNUSED to function currently just used in an assert
...
Fixes break when -Wunused-function is used.
llvm-svn: 219833
2014-10-15 19:24:14 +00:00
Sid Manning
12cd21aacd
Enable the instruction printer in HexagonMCTargetDesc
...
This adds the MCInstPrinter to the LLVMHexagonDesc library and removes
the dependency LLVMHexagonAsmPrinter had on LLVMHexagonDesc. This is
a prerequisite needed by the disassembler.
Phabricator Revision: http://reviews.llvm.org/D5734
llvm-svn: 219826
2014-10-15 18:27:40 +00:00
Eric Christopher
2a321f74f0
Remove the TargetMachine from DFAPacketizer since it was only
...
being used to grab subtarget specific things that we can grab
from the MachineFunction anyhow.
llvm-svn: 219650
2014-10-14 01:03:16 +00:00
Eric Christopher
143f02c47d
Remove unused argument to CreateTargetScheduleState and change
...
the TargetMachine to a TargetSubtargetInfo since everything
we wanted is off of that.
llvm-svn: 219382
2014-10-09 01:59:35 +00:00
NAKAMURA Takumi
2a295fd337
HexagonMCCodeEmitter.cpp: Prune 2nd redundant \brief. [-Wdocumentation]
...
llvm-svn: 219073
2014-10-05 04:54:54 +00:00
NAKAMURA Takumi
431c9d3f1f
HexagonDesc: Update LLVMBuild.txt.
...
llvm-svn: 219071
2014-10-05 04:54:29 +00:00
Benjamin Kramer
c6cc58e703
Remove unnecessary copying or replace it with moves in a bunch of places.
...
NFC.
llvm-svn: 219061
2014-10-04 16:55:56 +00:00
Hans Wennborg
da47cf46de
HexagonMCCodeEmitter.h: deleted member functions are not supported in VS2012
...
llvm-svn: 218990
2014-10-03 17:02:28 +00:00
Sid Manning
40d809399f
Fix build break on Hexagon
...
Differential Revision: http://reviews.llvm.org/D5600
llvm-svn: 218987
2014-10-03 13:59:01 +00:00
Sid Manning
7da3f9acba
Adding skeleton for unit testing Hexagon Code Emission
...
Adding and modifying CMakeLists.txt files to run unit tests under
unittests/Target/* if the directory exists. Adding basic unit test to check
that code emitter object can be retrieved.
Differential Revision: http://reviews.llvm.org/D5523
Change by: Colin LeMahieu
llvm-svn: 218986
2014-10-03 13:18:11 +00:00
Sid Manning
31f7125562
Add missing attributes !cmp.[eq,gt,gtu] instructions.
...
These instructions do not indicate they are extendable or the
number of bits in the extendable operand. Rename to match
architected names. Add a testcase for the intrinsics.
llvm-svn: 218453
2014-09-25 13:09:54 +00:00
Sid Manning
bd8bd484c3
Loop instead of individual def's for each GPR.
...
Differential Revision: http://reviews.llvm.org/D5450
llvm-svn: 218305
2014-09-23 13:55:50 +00:00
Aaron Ballman
0bb041b5f4
Reverting NFC changes from r218050. Instead, the warning was disabled for GCC in r218059, so these changes are no longer required.
...
llvm-svn: 218062
2014-09-18 17:34:23 +00:00
Aaron Ballman
11fa97fa32
Fixing a bunch of -Woverloaded-virtual warnings due to hiding getSubtargetImpl from the base class. NFC.
...
llvm-svn: 218050
2014-09-18 13:27:14 +00:00
Sid Manning
e7b92f0e81
Add missing HWEncoding to base register class.
...
This change gives tblgen the information needed to fill in the
HexagonRegEncodingTable.
llvm-svn: 217500
2014-09-10 13:09:25 +00:00
Sid Manning
ac3e325d67
Spelling correction
...
Another trivial spelling change.
llvm-svn: 217364
2014-09-08 13:05:23 +00:00
Benjamin Kramer
8c90fd71f7
Add override to overriden virtual methods, remove virtual keywords.
...
No functionality change. Changes made by clang-tidy + some manual cleanup.
llvm-svn: 217028
2014-09-03 11:41:21 +00:00
Craig Topper
fd38cbebda
Remove 'virtual' keyword from methods markedwith 'override' keyword.
...
llvm-svn: 216823
2014-08-30 16:48:34 +00:00
Sid Manning
67a8936a84
Minor spelling correction.
...
Reviewers: adasgupt, jverma, sidneym
Differential Revision: http://reviews.llvm.org/D5025
llvm-svn: 216667
2014-08-28 14:16:32 +00:00
Alexey Samsonov
2651ae6513
Fix undefined behavior (left shift of negative value) in Hexagon backend.
...
This bug is reported by UBSan.
llvm-svn: 216125
2014-08-20 21:22:03 +00:00
Alexey Samsonov
ea0aee622e
Cleanup: Delete seemingly unused reference to MachineDominatorTree from ScheduleDAGInstrs.
...
llvm-svn: 216124
2014-08-20 20:57:26 +00:00
Alexey Samsonov
8968e6d1b0
Fix null reference creation in ScheduleDAGInstrs constructor call.
...
Both MachineLoopInfo and MachineDominatorTree may be null in ScheduleDAGMI
constructor call. It is undefined behavior to take references to these values.
This bug is reported by UBSan.
llvm-svn: 216118
2014-08-20 19:36:05 +00:00
Robin Morisset
d18cda620c
Fix typos in comments
...
llvm-svn: 215777
2014-08-15 22:17:28 +00:00
Rafael Espindola
d610ba99cb
Remove HasLEB128.
...
We already require CFI, so it should be safe to require .leb128 and .uleb128.
llvm-svn: 215712
2014-08-15 14:01:07 +00:00
Benjamin Kramer
a7c40ef022
Canonicalize header guards into a common format.
...
Add header guards to files that were missing guards. Remove #endif comments
as they don't seem common in LLVM (we can easily add them back if we decide
they're useful)
Changes made by clang-tidy with minor tweaks.
llvm-svn: 215558
2014-08-13 16:26:38 +00:00
Eric Christopher
b5217507c7
Remove the target machine from CCState. Previously it was only used
...
to get the subtarget and that's accessible from the MachineFunction
now. This helps clear the way for smaller changes where we getting
a subtarget will require passing in a MachineFunction/Function as
well.
llvm-svn: 214988
2014-08-06 18:45:26 +00:00
Eric Christopher
fc6de428c8
Have MachineFunction cache a pointer to the subtarget to make lookups
...
shorter/easier and have the DAG use that to do the same lookup. This
can be used in the future for TargetMachine based caching lookups from
the MachineFunction easily.
Update the MIPS subtarget switching machinery to update this pointer
at the same time it runs.
llvm-svn: 214838
2014-08-05 02:39:49 +00:00
Eric Christopher
d913448b38
Remove the TargetMachine forwards for TargetSubtargetInfo based
...
information and update all callers. No functional change.
llvm-svn: 214781
2014-08-04 21:25:23 +00:00
NAKAMURA Takumi
04b8b37f56
Prune Redundant libdeps in CMake's target_link_libraries and LLVMBuild.txt.
...
I checked this with Release+Asserts on x86_64-mingw32. Please restore partially if this were overkill.
llvm-svn: 213064
2014-07-15 11:37:03 +00:00
Alp Toker
cf21875d41
Fix 'platform-specific' hyphenations
...
llvm-svn: 212056
2014-06-30 18:57:16 +00:00
Eric Christopher
c4c63ae9f4
Move all of the hexagon subtarget dependent variables from the target
...
machine to the subtarget.
llvm-svn: 211824
2014-06-27 00:27:40 +00:00
Eric Christopher
4496eb0b09
Have HexagonSelectionDAGInfo take a DataLayout rather than a
...
target machine since that's all it needs.
llvm-svn: 211822
2014-06-27 00:18:25 +00:00