Douglas Katzman
de85af6733
Add an ArgList::AddAllArgs that accepts a vector of OptSpecifier.
...
This lifts the somewhat arbitrary restriction on 3 OptSpecifiers.
Differential Revision: http://reviews.llvm.org/D11597
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243539 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-29 17:34:41 +00:00
Douglas Katzman
8d1cf2218d
Use a specified list of languages in cmake project() command.
...
This allows asm files and Cxx files to be compiled with different flags
rather than treating them identically. LLVM itself has no asm files
other than tests, but this setting is inherited by the compiler-rt
project (unless compiled standalone), which does have asm files.
Differential Revision: http://reviews.llvm.org/D10707
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243419 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-28 14:43:53 +00:00
Douglas Katzman
cd39f3c6cb
[X86]: Correctly sign-extend 16-bit immediate in CALL instruction.
...
Patch by Matthew Barney. Thanks!
Differential Revision: http://reviews.llvm.org/D9514
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240795 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-26 16:58:59 +00:00
Douglas Katzman
40db269af5
Add Arg::getValues method with const 'this' and const result
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240673 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-25 18:48:26 +00:00
Douglas Katzman
72260ba601
[X86] Simplify some stuff in X86DisassemblerDecoder. NFC
...
- Deciding that insn->sibIndex is SIB_INDEX_NONE does not require another
check beyond the fully decoded bits being equal to 0x4.
The expression insn->sibIndex == SIB_INDEX_sib could not have been true unless
index were 0x4, because SIB_INDEX_sib is merely the range base (SIB_INDEX_EAX)
plus 4. Respectively SIB_INDEX_sib64.
- Don't use a switch statement to perform left-shift.
Differential Revision: http://reviews.llvm.org/D9762
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240598 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-24 22:04:55 +00:00
Douglas Katzman
e40e848767
Spelling fixes in comments.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240594 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-24 21:46:53 +00:00
Douglas Katzman
ae7a59fa3e
Avoid warning about inability to cast from ptr-to-obj to ptr-to-fun.
...
Use POSIX.1-2003 Technical Corrigendum 1 suggested workaround.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240140 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-19 17:21:02 +00:00
Douglas Katzman
f52f043d3e
Wrap some long lines in LLVMBuild files. NFC
...
As suggested by jroelofs in a prior review (D9752),
it makes sense to generally prefer multi-line format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239632 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-12 18:44:57 +00:00
Douglas Katzman
2086b2e76a
Add 'shave' processor name to Triple
...
Based on ArchType, Clang's driver can select a non-Clang compiler.
String parsing in Clang would have sufficed if it were only that,
however this change anticipates true llvm support.
Differential Revision: http://reviews.llvm.org/D10413
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239631 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-12 18:31:38 +00:00
Douglas Katzman
3238e64ef4
Fix English usage in command line flag help string.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239556 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-11 20:03:23 +00:00
Douglas Katzman
b0cbcd2362
Fix comment typos.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239541 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-11 16:46:27 +00:00
Douglas Katzman
fd466aa498
Update obsolete comments, fix typo, delete trailing space.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237378 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-14 18:07:04 +00:00
Douglas Katzman
e0b6c1146d
Reflow long lines of some LLVMBuild files
...
Differential Revision: http://reviews.llvm.org/D9752
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237367 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-14 15:38:27 +00:00
Douglas Katzman
a8a342bb41
[X86] Fix PR23271 - RIP-relative decoding bug in disassembler.
...
Differential Revision: http://reviews.llvm.org/D9110
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237310 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-13 22:44:52 +00:00
Douglas Katzman
975251a698
Strip trailing whitespace. NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237165 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-12 19:42:31 +00:00
Douglas Katzman
413b283997
Comment disambiguation.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237146 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-12 15:45:56 +00:00
Douglas Katzman
58b44d65f9
Unbreak build: Makefile must have the same change as CMakeLists.txt
...
This was omitted from http://reviews.llvm.org/D9441
(the irony is that that was to detect omissions in something else)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236878 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-08 16:39:59 +00:00
Douglas Katzman
d7e20e7be8
Prevent further errors of omission when adding backend names.
...
Differential Revision: http://reviews.llvm.org/D9441
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236865 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-08 15:34:12 +00:00
Douglas Katzman
68f7995d19
Move unit test into anonymous namespace as per convention.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236332 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-01 18:51:06 +00:00
Douglas Katzman
300ebc5b86
Fix omission from adding sparcel (original http://reviews.llvm.org/D9263 )
...
"obviously" it needs to go in parseArch *and* getArchTypeForLLVMName.
Differential Revision: http://reviews.llvm.org/D9436
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236322 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-01 16:49:58 +00:00
Douglas Katzman
e52ba69038
Exhaustively test all triples in TripleTest.
...
Iteration over all permutations didn't really work,
due to evolution of the underlying enums.
Differential Revision: http://reviews.llvm.org/D9057
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236251 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-30 20:08:44 +00:00
Douglas Katzman
1b88927253
[Sparc] Really add sparcel architecture support.
...
Mostly copy-and-paste from Sparc v8 architecture.
Differential Revision: http://reviews.llvm.org/D8741
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236146 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 20:30:57 +00:00
Douglas Katzman
f74703a44f
New architecture name - 'sparcel' for Sparc little-endian.
...
Differential Revision: http://reviews.llvm.org/D9263
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236139 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 19:15:08 +00:00
Douglas Katzman
484da4100d
Make Sparc assembler accept parenthesized constant expressions.
...
Differential Revision: http://reviews.llvm.org/D9087
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236137 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-29 18:48:29 +00:00