Eric Christopher
f555863a16
Revert "Add a funciton to get the segment name of a section."
...
This reverts commit r170095 since it appears to be breaking the bots.
llvm-svn: 170105
2012-12-13 06:36:18 +00:00
Patrik Hagglund
bbd72d1bcb
Change TargetLowering::getRegClassFor to take an MVT, instead of EVT.
...
Accordingly, add helper funtions getSimpleValueType (in parallel to
getValueType) in SDValue, SDNode, and TargetLowering.
This is the first, in a series of patches.
This is the second attempt. In the first attempt (r169837), a few
getSimpleVT() were hoisted too far, detected by bootstrap failures.
llvm-svn: 170104
2012-12-13 06:34:11 +00:00
Rafael Espindola
7eb5b9d2f9
Add a funciton to get the segment name of a section.
...
On MachO, sections also have segment names. When a tool looking at a .o file
prints a segment name, this is what they mean. In reality, a .o has only one,
anonymous, segment.
This patch adds a MachO only function to fetch that segment name. I named it
getSectionFinalSegmentName since the main use for the name seems to be informing
the linker with segment this section should go to.
The patch also changes MachOObjectFile::getSectionName to return just the
section name instead of computing SegmentName,SectionName.
llvm-svn: 170095
2012-12-13 04:07:18 +00:00
Rafael Espindola
89cd622454
Missed these calls from the previous rename somehow.
...
llvm-svn: 170094
2012-12-13 03:42:31 +00:00
Rafael Espindola
997fcdb78b
Rename isPowerOfTwo to isKnownToBeAPowerOfTwo.
...
In a previous thread it was pointed out that isPowerOfTwo is not a very precise
name since it can return false for powers of two if it is unable to show that
they are powers of two.
llvm-svn: 170093
2012-12-13 03:37:24 +00:00
Akira Hatanaka
2f0d162adc
[mips] Do not copy GOT address to register $gp if the function being called has
...
internal linkage.
llvm-svn: 170092
2012-12-13 03:17:29 +00:00
Michael Ilseman
1654daa5a0
Pattern matching code for intrinsics.
...
Provides m_Argument that allows matching against a CallSite's specified argument. Provides m_Intrinsic pattern that can be templatized over the intrinsic id and bind/match arguments similarly to other pattern matchers. Implementations provided for 0 to 4 arguments, though it's very simple to extend for more. Also provides example template specialization for bswap (m_BSwap) and example of code cleanup for its use.
llvm-svn: 170091
2012-12-13 03:13:36 +00:00
Eric Christopher
ea66d7a384
Remove extraneous debugging code.
...
llvm-svn: 170090
2012-12-13 03:07:28 +00:00
Eric Christopher
99bbd8e6cc
Use default label name for a section in emitting abbreviation
...
section to help prep some code to be split about.
llvm-svn: 170088
2012-12-13 03:00:38 +00:00
Eric Christopher
325c9ba723
Add a way of printing out an arbitrary label name for a section
...
given the section.
llvm-svn: 170087
2012-12-13 03:00:35 +00:00
Michael Ilseman
c1bdef1400
m_CombineOr and m_CombineAnd pattern combinators
...
llvm-svn: 170086
2012-12-13 02:55:53 +00:00
Hao Liu
40669c94de
Define getHostCPUFeatures for ARM Linux platform
...
llvm-svn: 170085
2012-12-13 02:40:20 +00:00
Akira Hatanaka
9b0bb584d7
[mips] Delete all floating point instruction classes that are no longer used.
...
No functionality change.
llvm-svn: 170084
2012-12-13 02:05:02 +00:00
Eli Bendersky
462f346f2c
Make this Lit config file a bit slimmer
...
llvm-svn: 170083
2012-12-13 02:03:46 +00:00
Akira Hatanaka
8a20e0e5f7
[mips] Modify definitions of floating point conditional move instructions.
...
No functionality change.
llvm-svn: 170080
2012-12-13 01:41:15 +00:00
Evan Cheng
a1d639a0ea
Fix a bug in DAGCombiner::MatchBSwapHWord. Make sure the node has operands before referencing them. rdar://12868039
...
llvm-svn: 170078
2012-12-13 01:34:32 +00:00
Akira Hatanaka
91fcd99fe7
[mips] Modify definitions of floating point comparison instructions.
...
No functionality change.
llvm-svn: 170077
2012-12-13 01:34:09 +00:00
Akira Hatanaka
a2c716142c
[mips] Modify definitions of floating point branch instructions.
...
No functionality change.
llvm-svn: 170076
2012-12-13 01:32:36 +00:00
Akira Hatanaka
1adf30b9d9
[mips] Modify definitions of floating point indexed load and store instructions.
...
No functionality change.
llvm-svn: 170075
2012-12-13 01:30:49 +00:00
Akira Hatanaka
98db320b09
[mips] Modify definitions of floating point multiply-add/sub instructions.
...
No functionality change.
llvm-svn: 170073
2012-12-13 01:27:48 +00:00
Akira Hatanaka
c9ffc6e2aa
[mips] Modify definitions of floating point load and store instructions.
...
No functionality change.
llvm-svn: 170072
2012-12-13 01:24:00 +00:00
Akira Hatanaka
8870233371
[mips] Modify definitions of move from/to coprocessor instructions.
...
No functionality change.
llvm-svn: 170071
2012-12-13 01:16:49 +00:00
Akira Hatanaka
ec241a272b
[mips] Modify definitions of two register operand floating point instructions.
...
No functionality change.
llvm-svn: 170069
2012-12-13 01:14:07 +00:00
Akira Hatanaka
3e348c6459
[mips] Modify definitions of three register operand floating point instructions
...
and separate encoding information from the rest.
llvm-svn: 170066
2012-12-13 01:07:37 +00:00
Quentin Colombet
8a6d9f3b95
Take into account minimize size attribute in the inliner.
...
Better controls the inlining of functions when the caller function has MinSize attribute.
Basically, when the caller function has this attribute, we do not "force" the inlining
of callee functions carrying the InlineHint attribute (i.e., functions defined with
inline keyword)
llvm-svn: 170065
2012-12-13 01:05:25 +00:00
Jakob Stoklund Olesen
524c6499dc
Avoid setIsInsideBundle in Target/R600.
...
This function is going to be removed.
llvm-svn: 170064
2012-12-13 00:59:38 +00:00
Jakob Stoklund Olesen
fa009e8eff
Express prepend and append in terms of a more generic insert().
...
Also add an MIBundleBuilder constructor that takes an existing bundle.
Together these functions make it possible to add instructions to
existing bundles.
llvm-svn: 170063
2012-12-13 00:59:36 +00:00
Akira Hatanaka
5b3f83b790
[mips] Move classes that do not belong in MipsInstrFormats.td into
...
MipsInstrFPU.td.
llvm-svn: 170061
2012-12-13 00:49:23 +00:00
Akira Hatanaka
06623f41fb
[mips] Set isCommutable flag in a more explicit way.
...
llvm-svn: 170060
2012-12-13 00:46:23 +00:00
Akira Hatanaka
17afb028f1
[mips] Remove fmt from the parameter list of classes FMADDSUB and FNMADDSUB.
...
llvm-svn: 170057
2012-12-13 00:38:59 +00:00
Akira Hatanaka
09dbe69401
[mips] Remove single-precision floating point instruction from multiclass
...
FFR2P_M.
llvm-svn: 170055
2012-12-13 00:35:54 +00:00
Akira Hatanaka
01e48fccff
[mips] Move class IsCommutable into MipsInstrInfo.td.
...
llvm-svn: 170054
2012-12-13 00:32:01 +00:00
Akira Hatanaka
27204fd141
[mips] Remove single-precision floating point instructions from multiclasses
...
FFR1_W_M and FFR1P_M. The new instruction definitions have one-to-one
correspondence with the instructions in the ISA manual.
llvm-svn: 170053
2012-12-13 00:29:29 +00:00
Eli Bendersky
7286022192
Fix a bogus comment
...
llvm-svn: 170052
2012-12-13 00:24:56 +00:00
Nadav Rotem
ca05f9e72b
Teach the cost model about the optimization in r169904: Truncation of induction variables costs the same as scalar trunc.
...
llvm-svn: 170051
2012-12-13 00:21:03 +00:00
Chad Rosier
ae6e0d99a8
Typo.
...
llvm-svn: 170050
2012-12-13 00:18:46 +00:00
Pedro Artigas
0e3841e00e
Make the MCStreamer have a reset method and call that after finalization of the asm printer,
...
also changed MCContext to a single reset only method for simplicity as requested on the list
llvm-svn: 170041
2012-12-12 22:59:46 +00:00
Chad Rosier
2b1f874fc0
[ms-inline asm] Make sure we fail gracefully on parse errors. Parse errors
...
should only occur on invalid input. Instruction matching errors aren't
unexpected, so we can't rely on the AsmParsers HadError variable directly.
rdar://12840278
llvm-svn: 170037
2012-12-12 22:45:52 +00:00
Benjamin Kramer
c312bf9835
YAMLIO: Remove all of the template instantiation hacks, I don't see why they're necessary and it breaks linking of the unit tests.
...
Also comes with a clang-format run on the cpp file, it had major style violations.
llvm-svn: 170036
2012-12-12 22:40:02 +00:00
Nick Kledzik
f37b944ea2
Temporarily disable test cases until they compile with g++ too.
...
llvm-svn: 170035
2012-12-12 22:39:45 +00:00
David Blaikie
f993478af6
Unbreak the build. Fallout from r170019.
...
llvm-svn: 170033
2012-12-12 22:14:32 +00:00
Nick Kledzik
84d09bb392
AlignedCharArrayUnion is erroring with non-clang compilers
...
llvm-svn: 170031
2012-12-12 22:03:57 +00:00
Nick Kledzik
cb0eae2005
Fix calls to getAsSignedInteger() to use long long - not int64_t
...
llvm-svn: 170030
2012-12-12 21:42:49 +00:00
Dmitri Gribenko
1ef63415d3
Makefile.sphinx: reST conversion is complete!
...
No need to copy HTML files anymore.
llvm-svn: 170029
2012-12-12 21:35:43 +00:00
Dmitri Gribenko
26d0c4aed2
Documentation: use paths relative to document root in links.
...
llvm-svn: 170027
2012-12-12 21:16:29 +00:00
Jakub Staszak
e39c8890af
Fix typo, which prevent test from being check.
...
llvm-svn: 170025
2012-12-12 21:10:56 +00:00
Michael Ilseman
6db2e9667a
Restore the PHI optimization I accidently removed
...
llvm-svn: 170024
2012-12-12 20:59:36 +00:00
Jakub Staszak
5ff8f96e19
unHECKify test fixed by Jacob in r159003.
...
llvm-svn: 170023
2012-12-12 20:58:42 +00:00
Michael Ilseman
2641a31f93
Remove trailing whitespace
...
llvm-svn: 170022
2012-12-12 20:57:53 +00:00
Benjamin Kramer
1c1e7ebeae
Fix the build on case sensitive file systems.
...
llvm-svn: 170021
2012-12-12 20:55:44 +00:00