search for: getstream

Displaying 14 results from an estimated 14 matches for "getstream".

Did you mean: get_stream
2013 Nov 12
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...+ 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 Clang tests sh...
2011 Oct 16
0
[LLVMdev] llvm and stream error
Here is the code of the functions: int getStream()     {            int fd = _dup(fileno(stdout));            freopen("tmp","w",stdout);            return fd;     } void freeStream(int fd) {        _dup2(fd,fileno(stdout));        close(fd); } The code of main program: printf(“start tets”); int fd = getStream(); printf(“re...
2013 Nov 16
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...);} 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&qu...
2018 Jun 15
2
[WebAssembly] lld dynamic loader
...es I used locally to make dlopen/dlclose et dlsym mechanism works :) : Index: wasm/Writer.cpp =================================================================== --- wasm/Writer.cpp (revision 330555) +++ wasm/Writer.cpp (working copy) @@ -257,7 +257,7 @@ raw_ostream &OS = Section->getStream(); writeUleb128(OS, 1, "table count"); - WasmLimits Limits = {WASM_LIMITS_FLAG_HAS_MAX, TableSize, TableSize}; + WasmLimits Limits = {0, TableSize, TableSize}; writeTableType(OS, WasmTable{WASM_TYPE_ANYFUNC, Limits}); } May be to have a code more readable WASM_LIMITS_FLAG_HAS...
2013 Nov 12
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...ize_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...
2013 Dec 17
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...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 -integrated...
2013 Dec 19
1
[LLVMdev] [PATCH] MC: handle .cfi_startproc simple
...er.cpp > +++ b/lib/MC/MCParser/AsmParser.cpp > @@ -2736,9 +2736,13 @@ bool AsmParser::ParseDirectiveCFISections() { > } > > /// ParseDirectiveCFIStartProc > -/// ::= .cfi_startproc > +/// ::= .cfi_startproc [simple] > bool AsmParser::ParseDirectiveCFIStartProc() { > - getStreamer().EmitCFIStartProc(); > + StringRef ThisIdentifier; > + bool Simple = false; > + if (!parseIdentifier(ThisIdentifier) && ThisIdentifier == "simple") > + Simple = true; > + getStreamer().EmitCFIStartProc(Simple); > return false; > } > > diff...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...10 +698,10 @@ bool ARMAsmParser::ParseDirectiveWord(unsigned Size, SMLoc L) { if (getLexer().isNot(AsmToken::EndOfStatement)) { for (;;) { const MCExpr *Value; - if (getParser().ParseExpression(Value)) + if (ParseExpression(Value)) return true; - getParser().getStreamer().EmitValue(Value, Size, 0/*addrspace*/); + getStreamer().EmitValue(Value, Size, 0/*addrspace*/); if (getLexer().is(AsmToken::EndOfStatement)) break; @@ -717,11 +709,11 @@ bool ARMAsmParser::ParseDirectiveWord(unsigned Size, SMLoc L) { // FIXME: Improve diagnostic....
2013 Dec 17
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...AsmParser::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())....
2018 Jun 01
2
[WebAssembly] lld dynamic loader
Hello, The table generated by lld (Wasm target) have a max size. So this make impossible to add some others functions in the table . As for the moment only one Table is available in WAsm this is the only way to add function in a dynamic way. Having a none static size of the table is useful for a kind dynamic loader/inker at run-time: by adding some exported functions coming from another
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
...se() { >> + 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 indi...
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
2013 Apr 18
0
Processed: adding new jessie tag to sid-tagged bugs
...ne: FTBFS: gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly." Added tag(s) jessie. Added tag(s) jessie. > tags 701442 + jessie Bug #701442 [src:pacemaker] pacemaker: ftbfs with eglibc-2.17 Added tag(s) jessie. > tags 666643 + jessie Bug #666643 [src:getstream] getstream: FTBFS: gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly." Bug #665530 [src:getstream] getstream: Including individual glib headers no longer supported Added tag(s) jessie. Added tag(s) jessie. > tags 190725 + jessie Bug #190725 [courier-web...