summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/ms-inline-asm.c
Commit message (Collapse)AuthorAgeFilesLines
* Adding option -fno-inline-asm to disallow inline asmSteven Wu2015-01-161-0/+2
| | | | | | | | | | | | | | | | Summary: This patch add a new option to dis-allow all inline asm. Any GCC style inline asm will be reported as an error. Reviewers: rnk, echristo Reviewed By: rnk, echristo Subscribers: bob.wilson, rnk, echristo, rsmith, cfe-commits Differential Revision: http://reviews.llvm.org/D6870 llvm-svn: 226340
* ms-inline-asm: Scope inline asm labels to functionsEhsan Akhgari2014-09-221-0/+3
| | | | | | | | | | | | | | | | Summary: This fixes PR20023. In order to implement this scoping rule, we piggy back on the existing LabelDecl machinery, by creating LabelDecl's that will carry the "internal" name of the inline assembly label, which we will rewrite the asm label to. Reviewers: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4589 llvm-svn: 218230
* clang-cl: Merge adjacent single-line __asm blocksEhsan Akhgari2014-07-251-1/+1
| | | | | | | | | | | | | | | | | Summary: This patch extends the __asm parser to make it keep parsing input tokens as inline assembly if a single-line __asm line is followed by another line starting with __asm too. It also makes sure that we correctly keep matching braces in such situations by separating the notions of how many braces we are matching and whether we are in single-line asm block mode. Reviewers: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4598 llvm-svn: 213916
* Don't get confused on the number of braces when braces start after the first ↵Ehsan Akhgari2014-07-151-0/+3
| | | | | | | | | | | | | | | | __asm Summary: Without this, we would not consume the closing brace which would cause the parser to start consuming C++ and bad things would happen. Reviewers: majnemer Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4505 llvm-svn: 213032
* Add support for nested blocks in Microsoft inline assemblyEhsan Akhgari2014-07-061-0/+11
| | | | | | This fixes http://llvm.org/PR20204. llvm-svn: 212389
* Re-enable ms inline asm parser test.Alp Toker2013-12-081-1/+1
| | | | | | LLVM r196044 should make it pass. llvm-svn: 196734
* Temporarily disabling ms-asm testRenato Golin2013-01-251-0/+1
| | | | llvm-svn: 173510
* Add a triple, per Ben's suggestion.Chad Rosier2013-01-221-2/+1
| | | | llvm-svn: 173198
* Second attempt to fix ppc bots.Chad Rosier2013-01-221-1/+1
| | | | llvm-svn: 173193
* Add x86 requirement to hopefully fix ppc bots.Chad Rosier2013-01-221-0/+1
| | | | llvm-svn: 173190
* [ms-inline asm] Remove a warning about ms-style inline assembly not beingChad Rosier2013-01-221-14/+14
| | | | | | supported. llvm-svn: 173177
* [driver, ms-inline asm] MS-Style inline assembly is controlled by theChad Rosier2012-12-051-1/+1
| | | | | | | -fasm-blocks flag, not the -fms-extensions flag. rdar://12808010 llvm-svn: 169422
* [ms-inline asm] Change the -fenable-experimental-ms-inline-asm option from a Chad Rosier2012-08-241-4/+4
| | | | | | | | | CodeGen option to a LangOpt option. In turn, hoist the guard into the parser so that we avoid the new (and fairly unstable) Sema/AST/CodeGen logic. This should restore the behavior of clang to that prior to r158325. <rdar://problem/12163681> llvm-svn: 162602
* [ms-inline asm] MSVC parses multiple __asm statements on a single line as oneChad Rosier2012-08-151-2/+2
| | | | | | | | | | | | statement. For example, if (x) __asm out dx, ax __asm out dx, ax results in a single inline asm statement (i.e., both "out dx, ax" statements are predicated on if(x)). llvm-svn: 161986
* [ms-inline asm] Add a helpful assert.Chad Rosier2012-08-141-5/+5
| | | | llvm-svn: 161890
* [ms-style asm] Change the fatal error to an extension warning. Apparently, thisChad Rosier2012-06-201-12/+12
| | | | | | | error was asserting on anything that included Windows.h. MS-style inline asm is still dropped, but at least now we're not completely silent about it. llvm-svn: 158833
* [ms-inline-asm] The __asm keyword is a statement separator, so multiple asmChad Rosier2012-06-121-0/+6
| | | | | | statements are allowed on the same line. llvm-svn: 158372
* [ms-inline-asm] Cleanup MS style inline assembly parsing.Chad Rosier2012-06-121-1/+8
| | | | | | | | | | Specifically, improve the handling of whitespace, stop saving tokens that are in comments and fix the case where we have a comment followed by a closing brace on the next line. Unfortunately, there's no easy way of testing this code. llvm-svn: 158367
* Some fixes for MS-style asm parsing: specifically, add some error checking, ↵Eli Friedman2011-09-301-0/+25
and handle asm comments using semicolons correctly. (The comments are actually surprisingly tricky.) llvm-svn: 140837
OpenPOWER on IntegriCloud