Displaying 11 results from an estimated 11 matches for "getparser".
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...mer.h"
#include "llvm/MC/MCAsmInfo.h"
@@ -36,10 +37,11 @@ class TargetAsmParser;
class Twine;
class AsmParser : public MCAsmParser {
-private:
+protected:
AsmLexer Lexer;
MCContext &Ctx;
MCStreamer &Out;
+private:
SourceMgr &SrcMgr;
TargetAsmParser *TargetParser;
@@ -88,14 +90,23 @@ public:
virtual bool ParseParenExpression(const MCExpr *&Res, SMLoc &EndLoc);
virtual bool ParseAbsoluteExpression(int64_t &Res);
+ virtual bool ParseInstruction(const StringRef &Name, SMLoc NameLoc,
+ SmallVectorImpl&...
2013 Nov 12
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...ector here?
+ MCSymbol *getLabel() {return Label;}
+ size_t getNumEntries() {return Entries.size();}
+ const MCExpr *getEntry(size_t Num) {return Entries[Num];}
These can be const.
+ int64_t ConstantPoolCounter;
This can be unsigned.
+ case AsmToken::Equal: {
+ const MCSection *Section =
getParser().getStreamer().getCurrentSection().first;
+ assert(Section);
We should probably check here that the mnemonic is actually 'ldr', e.g. see
the AsmToken::Identifier case.
+@ RUN: clang -target arm -integrated-as -c %s -o %t1 2> %t2; echo "ok"
+@ RUN: cat %t2 | FileCheck %s
Cl...
2013 Nov 16
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...ntries.size();} const MCExpr *getEntry(size_t Num) {return
> > + Entries[Num];}
> > These can be const.
> >
> > + int64_t ConstantPoolCounter;
> > This can be unsigned.
> >
> > + case AsmToken::Equal: {
> > + const MCSection *Section =
> > getParser().getStreamer().getCurrentSection().first;
> > + assert(Section);
> > We should probably check here that the mnemonic is actually 'ldr', e.g.
> > see the AsmToken::Identifier case.
> >
> > +@ RUN: clang -target arm -integrated-as -c %s -o %t1 2> %t2; echo...
2013 Nov 12
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...;}
> + size_t getNumEntries() {return Entries.size();} const MCExpr
> + *getEntry(size_t Num) {return Entries[Num];}
> These can be const.
>
> + int64_t ConstantPoolCounter;
> This can be unsigned.
>
> + case AsmToken::Equal: {
> + const MCSection *Section =
> getParser().getStreamer().getCurrentSection().first;
> + assert(Section);
> We should probably check here that the mnemonic is actually 'ldr', e.g.
> see the AsmToken::Identifier case.
>
> +@ RUN: clang -target arm -integrated-as -c %s -o %t1 2> %t2; echo "ok"
> +@...
2013 Dec 17
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...the context of the code.
+void ARMAsmParser::finishParse() {
+ for (ConstantPoolMapTy::iterator CpI = ConstantPools.begin(), CpE = ConstantPools.end(); CpI != CpE; ++CpI) {
+ const MCSection *Section = CpI->first;
+ ConstantPool &CP = CpI->second;
+ MCStreamer &Streamer = getParser().getStreamer();
+ Streamer.SwitchSection(Section);
+ Streamer.EmitLabel(CP.getLabel());
+ for (size_t I = 0; I < CP.getNumEntries(); ++I)
+ Streamer.EmitValue(CP.getEntry(I), 4);
+ }
+}
This is missing data-in-code indicators (see EmitDataRegion()).
+ at RUN: clang -target arm...
2013 Dec 17
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...t; +void ARMAsmParser::finishParse() {
> + for (ConstantPoolMapTy::iterator CpI = ConstantPools.begin(), CpE =
> ConstantPools.end(); CpI != CpE; ++CpI) {
> + const MCSection *Section = CpI->first;
> + ConstantPool &CP = CpI->second;
> + MCStreamer &Streamer = getParser().getStreamer();
> + Streamer.SwitchSection(Section);
> + Streamer.EmitLabel(CP.getLabel());
> + for (size_t I = 0; I < CP.getNumEntries(); ++I)
> + Streamer.EmitValue(CP.getEntry(I), 4);
> + }
> +}
>
> This is missing data-in-code indicators (see EmitData...
2013 Nov 11
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
I have attached an initial patch that implements the ldr pseudo. It still
needs some clean up and more tests, but I would like some feedback on the
approach I used and if there are any objections to implementing it this way.
Here is my approach:
Add a finishParse() callback to the target asm parser
This callback is invoked when the parse has finished
successfully. It will be used to write out
2013 Dec 17
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...r::finishParse() {
>> + for (ConstantPoolMapTy::iterator CpI = ConstantPools.begin(), CpE =
>> ConstantPools.end(); CpI != CpE; ++CpI) {
>> + const MCSection *Section = CpI->first;
>> + ConstantPool &CP = CpI->second;
>> + MCStreamer &Streamer = getParser().getStreamer();
>> + Streamer.SwitchSection(Section);
>> + Streamer.EmitLabel(CP.getLabel());
>> + for (size_t I = 0; I < CP.getNumEntries(); ++I)
>> + Streamer.EmitValue(CP.getEntry(I), 4);
>> + }
>> +}
>>
>> This is missing data-...
2012 Nov 26
3
R strange behaviour when building huge concatenation
...;(cdBgSumEstimate <- sum(cdBgCe));");
code.addRCode("(cdBgMsle <- mean((log(cdData$p2x+1)-log(cdBgCe+1))^2));");
code.addRCode("(corr <- cor(cdData$p2x, cdBgCe));");
caller.setRCode(code);
caller.runAndReturnResult("cdBgCe");
ROutputParser parser = caller.getParser();
ArrayList<String> nomi = parser.getNames();
for (String nome : nomi) {
double[] previsioni = parser.getAsDoubleArray(nome);
logger.info("Nome "+nome+" lunghezza valori "+previsioni.length);
for (int i = 0; i < previsioni.length; i++) {
logger.info("Valore "...
2013 Nov 01
8
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
In an earlier email[1] I proposed adding support for the ldr
pseud-instruction to the ARM integrated assembler. After some discussion the
overall consensus seemed to be that it was worth adding. One concern was
that we needed to have adequate testing. I promised to provide more details
on what the behavior should be and provide some tests before starting the
implementation. The FileCheck-ified
2007 Mar 28
2
[PATCH 2/3] User-space grant table device - main driver
A character device for accessing (in user-space) pages that have been
granted by other domains.
Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel