search for: iasyntaxatt

Displaying 3 results from an estimated 3 matches for "iasyntaxatt".

2012 Aug 06
3
[LLVMdev] [RFC] MS-style inline assembly
...rnal developers, I would like to propose a small IR extension. Specifically, I would like to add a function attribute to inline asm calls that indicates the syntax in which the asm is written. E.g., call void asm sideeffect "nop\n\t", "~{dirflag},~{fpsr},~{flags}"() nounwind iasyntaxatt Notice the addition of the iasyntaxatt keyword. This is used by the AsmPrinter to determine the correct asm variant. I've implemented this change and would be happy to send it to the commits list for review. However, the backend doesn't currently use this information so I don't thin...
2012 Aug 06
0
[LLVMdev] [cfe-dev] [RFC] MS-style inline assembly
...involves some modifications, the advantages you listed are worth it. > 4. How do we distinguish the assembly dialect at the IR level? > I also agree about adding a new attribute to the IR. I'm not familiar with how IR metadata works, but instead of having specific syntax attributes ( iasyntaxatt), it would be cleaner to have a generic asmsyntax attribute that could take att/intel values. 5. How should the inline asm be represented in the AST? > > This is largely an open question and I'm still in the process of > familiarize > myself with the frontend. Doing this in a san...
2012 Aug 06
2
[LLVMdev] [cfe-dev] [RFC] MS-style inline assembly
...n't think the modification will be that extensive. > > > 4. How do we distinguish the assembly dialect at the IR level? > > I also agree about adding a new attribute to the IR. I'm not familiar with how IR metadata works, but instead of having specific syntax attributes (iasyntaxatt), it would be cleaner to have a generic asmsyntax attribute that could take att/intel values. I don't think metadata would be the right approach as it would be rather heavy handed considering were only storing a bit or two of information. An attribute is the right way to go, so this is really...