Displaying 14 results from an estimated 14 matches for "getstreamer".
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 shou...
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(“redirection”);
freeStream(fd);
This is a part of
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"...
2018 Jun 15
2
[WebAssembly] lld dynamic loader
Hi Sam,
Thanks for your answer!
Sorry I didn't really know how to process, but this issue block me to make
some legacy C code works without having some glue with a bit static lib ;(
(The change have really low risk)
The changes I used locally to make dlopen/dlclose et dlsym mechanism works
:) :
Index: wasm/Writer.cpp
===================================================================
---
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-a...
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()).
I...
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 indica...
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
Processing commands for control at bugs.debian.org:
> tags 653294 + jessie
Bug #653294 [hellanzb] hellanzb: doesn't work with python-twisted 11.1.0-1 (patch included)
Added tag(s) jessie.
> tags 701439 + jessie
Bug #701439 [src:ircd-hybrid] ircd-hybrid: ftbfs with eglibc-2.17
Added tag(s) jessie.
> tags 616910 + jessie
Bug #616910 [src:musiclibrarian] musiclibrarian: deprecation of