Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | MC/AsmParser: Move special section directive parsing to Darwin specific parser. | Daniel Dunbar | 2010-07-12 | 1 | -158/+316 | |
| | | | | llvm-svn: 108187 | |||||
* | MC/AsmParser: Add a basic ELFAsmParser extension. | Daniel Dunbar | 2010-07-12 | 1 | -0/+45 | |
| | | | | llvm-svn: 108185 | |||||
* | MC/AsmParser: Inline AsmParser::CreateSymbol into callers. | Daniel Dunbar | 2010-07-12 | 1 | -11/+6 | |
| | | | | llvm-svn: 108183 | |||||
* | MC/AsmParser: Move .tbss and .zerofill parsing to Darwin specific parser. | Daniel Dunbar | 2010-07-12 | 1 | -26/+30 | |
| | | | | llvm-svn: 108180 | |||||
* | MC/AsmParser: Move .desc parsing to Darwin specific parser. | Daniel Dunbar | 2010-07-12 | 1 | -7/+8 | |
| | | | | llvm-svn: 108179 | |||||
* | MC/AsmParser: Move .lsym parsing to Darwin specific parser. | Daniel Dunbar | 2010-07-12 | 1 | -8/+9 | |
| | | | | llvm-svn: 108176 | |||||
* | MC/AsmParser: Move some misc. Darwin directive handling to DarwinAsmParser. | Daniel Dunbar | 2010-07-12 | 1 | -23/+34 | |
| | | | | llvm-svn: 108174 | |||||
* | MC/AsmParser: Add a DarwinAsmParser extension. | Daniel Dunbar | 2010-07-12 | 1 | -1/+24 | |
| | | | | | | | - Currently initialization is a bit of a hack, but harmless. We need to rework various parts of target initialization to clean this up. llvm-svn: 108165 | |||||
* | MC/AsmParser: Switch a bunch of directive parsing to use accessors. | Daniel Dunbar | 2010-07-12 | 1 | -112/+114 | |
| | | | | llvm-svn: 108163 | |||||
* | MCAsmParser: Pull some directive handling out into a helper class, and change | Daniel Dunbar | 2010-07-12 | 1 | -15/+43 | |
| | | | | | | DirectiveMap to be based on MCAsmParserExtension. llvm-svn: 108161 | |||||
* | MC/AsmParser: Switch some directive parsing to use accessor methods. | Daniel Dunbar | 2010-07-12 | 1 | -17/+17 | |
| | | | | llvm-svn: 108160 | |||||
* | MC: Add MCAsmParserExtension, a base class for all the target/object specific | Daniel Dunbar | 2010-07-12 | 1 | -0/+6 | |
| | | | | | | classes which want to extend the basic asm parser. llvm-svn: 108158 | |||||
* | MC: Move AsmParser::TokError to MCAsmParser(). | Daniel Dunbar | 2010-07-12 | 1 | -5/+0 | |
| | | | | llvm-svn: 108155 | |||||
* | Convert some tab stops into spaces. | Duncan Sands | 2010-07-12 | 1 | -2/+2 | |
| | | | | llvm-svn: 108130 | |||||
* | Added the darwin .weak_def_can_be_hidden directive. | Kevin Enderby | 2010-07-08 | 1 | -0/+2 | |
| | | | | llvm-svn: 107886 | |||||
* | MC: Fix some stray hunks I didn't intend to commit. | Daniel Dunbar | 2010-07-01 | 1 | -1/+2 | |
| | | | | llvm-svn: 107428 | |||||
* | MC: Pass the target instance to the AsmParser constructor. | Daniel Dunbar | 2010-07-01 | 1 | -6/+3 | |
| | | | | llvm-svn: 107426 | |||||
* | MC: Fix an error message. | Daniel Dunbar | 2010-07-01 | 1 | -1/+1 | |
| | | | | llvm-svn: 107424 | |||||
* | Remove unused calls to Lexer.getLoc and the pointless variable HasFillExpr. | Duncan Sands | 2010-06-29 | 1 | -7/+0 | |
| | | | | llvm-svn: 107136 | |||||
* | Added the darwin .secure_log_unique and .secure_log_reset directives. | Kevin Enderby | 2010-06-28 | 1 | -0/+63 | |
| | | | | llvm-svn: 107077 | |||||
* | llvm-mc: Use EmitIntValue where possible, which makes the API calls from the ↵ | Daniel Dunbar | 2010-05-23 | 1 | -3/+6 | |
| | | | | | | AsmParser and CodeGen line up better. llvm-svn: 104467 | |||||
* | llvm-mc: Use AddBlankLine in asm parser. This makes transliteration match ↵ | Daniel Dunbar | 2010-05-23 | 1 | -0/+9 | |
| | | | | | | the input much more closely, and also makes the API calls from the AsmParser and CodeGen line up better. llvm-svn: 104466 | |||||
* | Add support for parsing the ELF .type assembler directive. | Matt Fleming | 2010-05-21 | 1 | -0/+49 | |
| | | | | llvm-svn: 104316 | |||||
* | fix rdar://7986634 - match instruction opcodes case insensitively. | Chris Lattner | 2010-05-19 | 1 | -1/+6 | |
| | | | | llvm-svn: 104183 | |||||
* | Make EmitTBSSSymbol take a section argument so that we can find it later. | Eric Christopher | 2010-05-18 | 1 | -1/+4 | |
| | | | | | | Fix up callers and users. llvm-svn: 104057 | |||||
* | Added support in MC for Directional Local Labels. | Kevin Enderby | 2010-05-17 | 1 | -4/+43 | |
| | | | | llvm-svn: 103989 | |||||
* | More data/parsing support for tls directives. Add a few more testcases | Eric Christopher | 2010-05-17 | 1 | -0/+10 | |
| | | | | | | and cleanup comments as well. llvm-svn: 103985 | |||||
* | MC/Mach-O/x86: Optimal nop sequences should only be used for the .text ↵ | Daniel Dunbar | 2010-05-17 | 1 | -8/+13 | |
| | | | | | | sections, not all sections in the text segment. llvm-svn: 103981 | |||||
* | llvm-mc: Support reassignment of variables in one special case, when the | Daniel Dunbar | 2010-05-17 | 1 | -1/+8 | |
| | | | | | | | | variable has not yet been used in an expression. This allows us to support a few cases that show up in real code (mostly because gcc generates it for Objective-C on Darwin), without giving up a reasonable semantic model for assignment. llvm-svn: 103950 | |||||
* | Assume that we'll handle mangling the symbols earlier and just put the | Eric Christopher | 2010-05-17 | 1 | -6/+2 | |
| | | | | | | symbol to the file as we have it. Simplifies out tbss handling. llvm-svn: 103928 | |||||
* | Add AsmParser support for darwin tbss directive. | Eric Christopher | 2010-05-14 | 1 | -0/+57 | |
| | | | | | | Nothing uses this yet. llvm-svn: 103757 | |||||
* | Fix a couple of typos. | Eric Christopher | 2010-05-14 | 1 | -2/+2 | |
| | | | | llvm-svn: 103756 | |||||
* | fix rdar://7965971 and a fixme: use ParseIdentifier in | Chris Lattner | 2010-05-13 | 1 | -13/+9 | |
| | | | | | | | | ParseDirectiveDarwinZerofill instead of hard coding the check for identifier. This allows quoted symbol names to be used. llvm-svn: 103682 | |||||
* | MC: Reject attempts to define a variable symbol. | Daniel Dunbar | 2010-05-05 | 1 | -1/+1 | |
| | | | | llvm-svn: 103111 | |||||
* | MC: Rename MCSymbol::{g,s}etValue -> MCSymbol::{g,s}etVariableValue. | Daniel Dunbar | 2010-05-05 | 1 | -3/+3 | |
| | | | | llvm-svn: 103095 | |||||
* | llvm-mc: Fix case were we would skip a line in the .s file after an instruction | Daniel Dunbar | 2010-05-04 | 1 | -26/+25 | |
| | | | | | | | | match failure. Also, fixes a few memory leak FIXMEs. llvm-svn: 102986 | |||||
* | refactor .if handling code a bit. | Chris Lattner | 2010-04-17 | 1 | -52/+23 | |
| | | | | llvm-svn: 101659 | |||||
* | implement mc asmparser support for '.', which gets the | Chris Lattner | 2010-04-14 | 1 | -0/+12 | |
| | | | | | | | | | | | | | | | | | | | current PC. rdar://7834775 We now produce an identical .o file compared to the cctools assembler for something like this: _f0: L0: jmp L1 .long . - L0 L1: jmp A .long . - L1 .zerofill __DATA,_bss,A,0 llvm-svn: 101227 | |||||
* | move macho section uniquing from MCParser and TLOF to MCContext where | Chris Lattner | 2010-04-08 | 1 | -56/+17 | |
| | | | | | | | the compiler and asmparser now unique to the same sections. This fixes rdar://7835021. llvm-svn: 100807 | |||||
* | Give AsmParser an option to control whether it finalizes | Chris Lattner | 2010-04-05 | 1 | -2/+4 | |
| | | | | | | | | | | | | | | | | | | | | the stream. New demo: $ clang asm.c -S -o - -emit-llvm | llc -filetype=obj -o t.o $ otool -tv t.o t.o: (__TEXT,__text) section _foo: 0000000000000000 subq $0x08,%rsp 0000000000000004 movl %edi,(%rsp) 0000000000000007 movl %edi,%eax 0000000000000009 incl %eax 000000000000000b movl %eax,(%rsp) 000000000000000e movl %eax,0x04(%rsp) 0000000000000012 addq $0x08,%rsp 0000000000000016 ret llvm-svn: 100492 | |||||
* | Rip out the 'is temporary' nonsense from the MCContext interface to | Chris Lattner | 2010-03-30 | 1 | -3/+1 | |
| | | | | | | | | | create symbols. It is extremely error prone and a source of a lot of the remaining integrated assembler bugs on x86-64. This fixes rdar://7807601. llvm-svn: 99902 | |||||
* | MC: Allow modifiers in MCSymbolRefExpr, and eliminate X86MCTargetExpr. | Daniel Dunbar | 2010-03-15 | 1 | -2/+12 | |
| | | | | | | | - Although it would be nice to allow this decoupling, the assembler needs to be able to reason about MCSymbolRefExprs in too many places to make this viable. We can use a target specific encoding of the variant if this becomes an issue. - This patch also extends llvm-mc to support parsing of the modifiers, as opposed to lumping them in with the symbol. llvm-svn: 98592 | |||||
* | llvm-mc: Support -n, useful for comparing -integrated-as output since the | Daniel Dunbar | 2010-03-13 | 1 | -7/+6 | |
| | | | | | | compiler may not lead with the text section. llvm-svn: 98418 | |||||
* | Remove unneeded includes. | Daniel Dunbar | 2010-03-10 | 1 | -1/+0 | |
| | | | | llvm-svn: 98167 | |||||
* | eliminate MCContext::CreateSymbol and CreateTemporarySymbol. | Chris Lattner | 2010-03-10 | 1 | -6/+2 | |
| | | | | | | | Add a new GetOrCreateTemporarySymbol method and a version that takes a twine. llvm-svn: 98118 | |||||
* | pass in more section kinds, enough to get the .align 0x90 | Chris Lattner | 2010-02-26 | 1 | -5/+9 | |
| | | | | | | stuff to emit optimal nops in the right places. llvm-svn: 97233 | |||||
* | This is a patch to the assembler frontend to detect when aligning a text | Kevin Enderby | 2010-02-25 | 1 | -3/+9 | |
| | | | | | | | | section with TextAlignFillValue and calls EmitCodeAlignment() instead of calling EmitValueToAlignment(). This allows x86 assembly code to be aligned with optimal nops. llvm-svn: 97158 | |||||
* | MC/AsmParser: Attempt to constant fold expressions up-front. This ensures we ↵ | Daniel Dunbar | 2010-02-13 | 1 | -2/+10 | |
| | | | | | | avoid fixups for obvious cases like '-(16)'. llvm-svn: 96064 | |||||
* | wirte up .file and .file to the mc asmparser. | Chris Lattner | 2010-01-25 | 1 | -3/+7 | |
| | | | | llvm-svn: 94438 | |||||
* | fix a parsing problem on instructions like: | Chris Lattner | 2010-01-24 | 1 | -4/+3 | |
| | | | | | | | | movw $8, (_cost_table_-L97$pb)+66(%eax) After the parens, we could still have a binop. llvm-svn: 94345 |