| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
of include directives to occur within the parser itself.
This will break the lexer's dependency on a SourceMgr as
input.
llvm-svn: 93899
|
| |
|
|
|
|
| |
identifier. There is no way to work around it.
llvm-svn: 93896
|
| |
|
|
|
|
| |
(which just iteratively emits bytes) to MCStreamer.
llvm-svn: 93888
|
| |
|
|
|
|
| |
as a power of 2. This fixes MC/AsmParser/directive_comm.s
llvm-svn: 93867
|
| |
|
|
|
|
| |
unneeded argument from ParseExpression.
llvm-svn: 93536
|
| |
|
|
|
|
|
| |
to return range information for subexpressions. Use this to
provide range info for several new X86Operands.
llvm-svn: 93534
|
| |
|
|
|
|
| |
the default implementation returns "unknown".
llvm-svn: 93470
|
| |
|
|
|
|
|
|
|
|
|
| |
the new ParseInstruction method just parses and returns a list of
target operands. A new MatchInstruction interface is used to
turn the operand list into an MCInst.
This requires new/deleting all the operands, but it also gives
targets the ability to use polymorphic operands if they want to.
llvm-svn: 93469
|
| |
|
|
|
|
|
| |
Pass in SMLoc of instr opcode into ParseInstruction.
Make AsmToken be a class, not a struct.
llvm-svn: 93457
|
| |
|
|
| |
llvm-svn: 92183
|
| |
|
|
| |
llvm-svn: 84233
|
| |
|
|
|
|
| |
variables and symbols invalid.
llvm-svn: 84232
|
| |
|
|
|
|
| |
since they are allowed to be redefined.
llvm-svn: 84230
|
| |
|
|
|
|
|
|
| |
to directive handlers and allows for easier extensibility.
I only switched a few over for now.
llvm-svn: 82926
|
| |
|
|
| |
llvm-svn: 81997
|
| |
|
|
|
|
|
|
| |
that things like .word can be parsed as target specific. Moved parsing .word
out of AsmParser.cpp into X86AsmParser.cpp as it is 2 bytes on X86 and 4 bytes
for other targets that support the .word directive.
llvm-svn: 81461
|
| |
|
|
| |
llvm-svn: 81109
|
| |
|
|
| |
llvm-svn: 80578
|
| |
|
|
| |
llvm-svn: 80577
|
| |
|
|
| |
llvm-svn: 80576
|
| |
|
|
| |
llvm-svn: 80574
|
| |
|
|
| |
llvm-svn: 80571
|
| |
|
|
|
|
| |
taking the MCContext (which now owns all MCExprs).
llvm-svn: 80569
|
| |
|
|
| |
llvm-svn: 80567
|
| |
|
|
|
|
|
|
| |
for now.
- Switch Emit{CommonSymbol,Zerofill} to take alignment in bytes (for consistency).
llvm-svn: 80484
|
| |
|
|
| |
llvm-svn: 80343
|
| |
|
|
| |
llvm-svn: 80342
|
| |
|
|
|
|
|
| |
--- Reverse-merging r80305 into '.':
U tools/llvm-mc/AsmParser.cpp
llvm-svn: 80309
|
| |
|
|
| |
llvm-svn: 80305
|
| |
|
|
|
|
|
|
| |
sections, etc.
- The quick and dirty way, just clone the TargetLoweringObjectFile
code. Eventually this should be shared... somehow.
llvm-svn: 80168
|
| |
|
|
|
|
|
|
| |
- I moved section creation back into AsmParser. I think policy decisions like
this should be pushed higher, not lower, when possible (in addition the
assembler has flags which change this behavior, for example).
llvm-svn: 80162
|
| |
|
|
|
|
| |
Also, warn about overflow in alignment values.
llvm-svn: 80077
|
| |
|
|
|
|
|
|
|
| |
(external was really undefined and there wasn't an explicit representation for
absolute symbols).
- This still needs some cleanup to how the absolute "pseudo" section is dealt
with, but I haven't figured out the nicest approach yet.
llvm-svn: 79733
|
| |
|
|
|
|
|
|
| |
(e.g., .objc_message_refs).
- Just emit a .align when we see the directive; this isn't exactly what 'as'
does but in practice it should be ok, at least for now. See FIXME.
llvm-svn: 79697
|
| |
|
|
|
|
| |
count is given (this matches 'as').
llvm-svn: 79683
|
| |
|
|
| |
llvm-svn: 79635
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add missing flags for various Objective-C sections.
- Fix names for [non_]lazy_symbol_pointer (these are misspelled in the manual).
- .symbol_stub does not have the self modifying code flag set (this appears to
be wrong in the manual?).
- Add implicit alignment values; not yet used.
Also, call MCStreamer::Finish at the end of a successful parse.
llvm-svn: 79611
|
| |
|
|
| |
llvm-svn: 79010
|
| |
|
|
| |
llvm-svn: 78641
|
| |
|
|
|
|
| |
yet (I'm not even sure what they do).
llvm-svn: 78639
|
| |
|
|
|
|
|
| |
(and outputting a diagnostic pointing at the wrong place), all of which lead to
much confusion.
llvm-svn: 78637
|
| |
|
|
| |
llvm-svn: 78576
|
| |
|
|
| |
llvm-svn: 78575
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
instead of syntactically as a string. This means that it keeps track of the
segment, section, flags, etc directly and asmprints them in the right format.
This also includes parsing and validation support for llvm-mc and
"attribute(section)", so we should now start getting errors about invalid
section attributes from the compiler instead of the assembler on darwin.
Still todo:
1) Uniquing of darwin mcsections
2) Move all the Darwin stuff out to MCSectionMachO.[cpp|h]
3) there are a few FIXMEs, for example what is the syntax to get the
S_GB_ZEROFILL segment type?
llvm-svn: 78547
|
| |
|
|
|
|
|
|
| |
classes.
This totally optimizes PIC16 sections by not having an 'isdirective' bit anymore!! ;-)
llvm-svn: 78517
|
| |
|
|
|
|
|
| |
llvm-mc's purpose yet and we'll want to switch to creating semantic sections
at some point.
llvm-svn: 78509
|
| |
|
|
|
|
|
|
| |
I can clean this up a bit more and do way with the TheCondState and just use
the top element on the TheCondStack if not empty. Also may tweak the code
around ParseConditionalAssemblyDirectives() to simplify the AsmParser code.
llvm-svn: 78423
|
| |
|
|
| |
llvm-svn: 77804
|
| |
|
|
| |
llvm-svn: 77787
|
| |
|
|
| |
llvm-svn: 77761
|