Displaying 12 results from an estimated 12 matches for "emitinlineasm".
2014 Jan 31
4
[LLVMdev] making emitInlineAsm protected
It may be moot because Reed is currently rewriting the patch to avoid using EmitInlineAsm and EmitRawText but I wanted to question something here.
I'm thinking that hasRawTextSupport() shouldn't be the condition used inside EmitInlineAsm. I think it would be more correct to have a useRawTextSupport() predicate that can return hasRawTextSupport() for (sub)targets that haven'...
2014 Jan 31
2
[LLVMdev] making emitInlineAsm protected
Ok then. I'll put together a patch early next week to add a hasMatureMCSupport() and use it in EmitInlineAsm().
I don't know which targets should return true for hasMatureMCSupport() at the moment though. I guess X86 and ARM would but are there any others?
________________________________________
From: Rafael Espíndola [rafael.espindola at gmail.com]
Sent: 31 January 2014 18:53
To: Daniel Sanders
Cc:...
2014 Jan 29
6
[LLVMdev] making emitInlineAsm protected
I would like to make the following member of AsmPrinter be protected
void EmitInlineAsm(StringRef Str, const MDNode *LocMDNode = 0,
InlineAsm::AsmDialect AsmDialect =
InlineAsm::AD_ATT) const;
I have some stubs that I want to emit in MipsAsmParser .
Are there any objections to doing this?
Reed
2014 Jan 29
6
[LLVMdev] making emitInlineAsm protected
On 01/29/2014 12:14 PM, Rafael Espíndola wrote:
> On 28 January 2014 19:56, reed kotler <rkotler at mips.com> wrote:
>> I would like to make the following member of AsmPrinter be protected
>>
>>
>> void EmitInlineAsm(StringRef Str, const MDNode *LocMDNode = 0,
>> InlineAsm::AsmDialect AsmDialect =
>> InlineAsm::AD_ATT) const;
>>
>> I have some stubs that I want to emit in MipsAsmParser .
> You mean Printer? There is no such a thing a...
2014 Jan 29
3
[LLVMdev] making emitInlineAsm protected
On 01/28/2014 06:29 PM, Eric Christopher wrote:
> Uhhhh...
>
> -eric
>
> On Tue, Jan 28, 2014 at 4:56 PM, reed kotler <rkotler at mips.com> wrote:
>> I would like to make the following member of AsmPrinter be protected
>>
>>
>> void EmitInlineAsm(StringRef Str, const MDNode *LocMDNode = 0,
>> InlineAsm::AsmDialect AsmDialect =
>> InlineAsm::AD_ATT) const;
>>
>> I have some stubs that I want to emit in MipsAsmParser .
>>
>> Are there any objections to doi...
2014 Jan 29
3
[LLVMdev] making emitInlineAsm protected
On 01/29/2014 01:48 PM, Rafael Espíndola wrote:
>> So how do I create stubs?
>>
>> I have specific function stubs that I want to create.
>>
>> There is no direct object emitter for mips16 at this time.
> Print it like any other instruction?
>
> Cheers,
> Rafael
I'd like to just check my code in and then you can look at it in it's
totality and see
2014 Jan 29
2
[LLVMdev] making emitInlineAsm protected
On 01/29/2014 02:32 PM, Eric Christopher wrote:
> On Wed, Jan 29, 2014 at 2:27 PM, reed kotler <rkotler at mips.com> wrote:
>> On 01/29/2014 02:18 PM, Rafael Espíndola wrote:
>>>>
>>>> I'd like to just check my code in and then you can look at it in it's
>>>> totality and see if you have
>>>> a better solution .
>>>
2014 Jan 29
3
[LLVMdev] making emitInlineAsm protected
On 01/29/2014 03:39 PM, Rafael Espíndola wrote:
>> So explain to me how this mechanism would work.
>>
>> As I'm processing a single mips16 function, I realize that I need to create
>> one or more mips32 helper functions.
>>
>> I'm in a function pass. So I'm not supposed to be creating new functions, as
>> far as I understand.
>>
>>
2014 Jan 30
2
[LLVMdev] making emitInlineAsm protected
On 01/29/2014 04:25 PM, Rafael Espíndola wrote:
>> How would this pass get added to the chain?
>>
>> It has to create more functions and then those in turn need to be compiled.
> I am sure it can be done. MergeFunctions for example creates new functions.
>
> Now, it does seem this request/code review is a bit upside down. You
> have been told that your original
2014 Jan 29
2
[LLVMdev] making emitInlineAsm protected
On 01/29/2014 02:18 PM, Rafael Espíndola wrote:
>> I'd like to just check my code in and then you can look at it in it's
>> totality and see if you have
>> a better solution .
> No!
>
> If it is the compiler creating instructions, it is not inline
> assembly. If you need to print mips16 and mips32 and they are two
> independent instruction sets, my guess is
2013 Jul 16
1
[LLVMdev] Instantiating Target-Specifc ASM Parser
Hello,
I am working on backend development and would like to utilize my target's MCAsmParser inside of an MCInst-level class implementation. I noticed that the AsmParser is registered with the target registry however I am having no luck grepping for a "template" of how to instantiate it and have yet to find specific documentation on how it is done. Any ideas or help is greatly
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...lineAsm.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
@@ -33,6 +33,7 @@
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/System/Host.h"
using namespace llvm;
/// EmitInlineAsm - Emit a blob of inline asm to the output streamer.
@@ -83,16 +84,17 @@ void AsmPrinter::EmitInlineAsm(StringRef Str, unsigned LocCookie) const {
// Tell SrcMgr about this buffer, it takes ownership of the buffer.
SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
- AsmParser Parser(SrcMgr, Out...