similar to: [LLVMdev] [lld] Handling a whole bunch of readers

Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] [lld] Handling a whole bunch of readers"

2013 Oct 09
0
[LLVMdev] [lld] Handling a whole bunch of readers
On Oct 9, 2013, at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org> wrote: > We have a whole bunch of readers(we would have some more too), and was thinking if we should have a vector of Readers, and have a function isMyFormat in each of them. > > Any reader that knows to handle, goes ahead and parses the file. > > On a side note, we currently use .objtxt as an figure
2013 Oct 09
1
[LLVMdev] [lld] Handling a whole bunch of readers
All files cannot be identified with a magic though. For example Linker scripts, and currently YAML files. On 10/9/2013 1:36 PM, Rui Ueyama wrote: > I guess in each isMyFormat(), you would check the given file's magic using > llvm::sys::fs::identify_magic(), and then check if it's a known value for > that reader. That would be repeated in each isMyFormat(), which is not very >
2013 Oct 09
2
[LLVMdev] [lld] Handling a whole bunch of readers
On 10/9/2013 3:09 PM, Nick Kledzik wrote: > On Oct 9, 2013, at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org> wrote: >> We have a whole bunch of readers(we would have some more too), and was thinking if we should have a vector of Readers, and have a function isMyFormat in each of them. >> >> Any reader that knows to handle, goes ahead and parses the file.
2013 Oct 09
0
[LLVMdev] [lld] Handling a whole bunch of readers
I guess in each isMyFormat(), you would check the given file's magic using llvm::sys::fs::identify_magic(), and then check if it's a known value for that reader. That would be repeated in each isMyFormat(), which is not very good. I'd do that using a mapping from file magic to reader. I mean, we could call identify_magic() at some central place, look up the mapping, and then dispatch.
2013 Oct 15
3
[LLVMdev] [lld] Handling a whole bunch of readers
On Mon, Oct 14, 2013 at 8:41 PM, Michael Spencer <bigcheesegs at gmail.com>wrote: > On Wed, Oct 9, 2013 at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org > > wrote: > >> Hi, >> >> We have a whole bunch of readers(we would have some more too), and was >> thinking if we should have a vector of Readers, and have a function >> isMyFormat in
2013 Oct 15
0
[LLVMdev] [lld] Handling a whole bunch of readers
On 10/14/2013 8:20 PM, Sean Silva wrote: > On Mon, Oct 14, 2013 at 8:41 PM, Michael Spencer <bigcheesegs at gmail.com>wrote: > >> On Wed, Oct 9, 2013 at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org >>> wrote: >>> Hi, >>> >>> We have a whole bunch of readers(we would have some more too), and was >>> thinking if we should
2013 Oct 10
0
[LLVMdev] [lld] Handling a whole bunch of readers
On 10/9/2013 4:19 PM, Shankar Easwaran wrote: > On 10/9/2013 3:09 PM, Nick Kledzik wrote: >> On Oct 9, 2013, at 11:23 AM, Shankar Easwaran >> <shankare at codeaurora.org> wrote: >>> We have a whole bunch of readers(we would have some more too), and >>> was thinking if we should have a vector of Readers, and have a >>> function isMyFormat in each
2013 Oct 15
2
[LLVMdev] [lld] Handling a whole bunch of readers
On Mon, Oct 14, 2013 at 11:33 PM, Shankar Easwaran <shankare at codeaurora.org>wrote: > On 10/14/2013 8:20 PM, Sean Silva wrote: > >> On Mon, Oct 14, 2013 at 8:41 PM, Michael Spencer <bigcheesegs at gmail.com >> >wrote: >> >> On Wed, Oct 9, 2013 at 11:23 AM, Shankar Easwaran < >>> shankare at codeaurora.org >>> >>>>
2013 Oct 15
0
[LLVMdev] [lld] Handling a whole bunch of readers
On Wed, Oct 9, 2013 at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org>wrote: > Hi, > > We have a whole bunch of readers(we would have some more too), and was > thinking if we should have a vector of Readers, and have a function > isMyFormat in each of them. > > Any reader that knows to handle, goes ahead and parses the file. > > On a side note, we
2013 Oct 15
0
[LLVMdev] [lld] Handling a whole bunch of readers
Here at CERT we've written some prototype tools that use YAML files to hold a minimal subset of the Clang parse tree. We then combine these files to perform cross-TU static analysis. We write out *only* the minimal information required for the particular static analysis being performed, so it's a tiny subset of the entire parse tree. Of course, that's all a hack-around to enable the
2013 Oct 15
1
[LLVMdev] [lld] Handling a whole bunch of readers
On Tue, Oct 15, 2013 at 12:01 PM, Dean Sutherland <dsutherland at cert.org>wrote: > Here at CERT we've written some prototype tools that use YAML files to > hold a minimal subset of the Clang parse tree. We then combine these files > to perform cross-TU static analysis. We write out *only* the minimal > information required for the particular static analysis being
2013 Oct 10
2
[LLVMdev] [lld] Handling a whole bunch of readers
On Wed, Oct 9, 2013 at 7:57 PM, Shankar Easwaran <shankare at codeaurora.org>wrote: > On 10/9/2013 4:19 PM, Shankar Easwaran wrote: > >> On 10/9/2013 3:09 PM, Nick Kledzik wrote: >> >>> On Oct 9, 2013, at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org> >>> wrote: >>> >>>> We have a whole bunch of readers(we would have
2013 Oct 11
2
[LLVMdev] [lld] Handling a whole bunch of readers
# is a line comment chracter in YAML so it's valid. That's why I wrote a simple magic "comment". On Thu, Oct 10, 2013 at 6:21 PM, Shankar Easwaran <shankare at codeaurora.org>wrote: > On 10/10/2013 5:00 PM, Rui Ueyama wrote: > >> On Thu, Oct 10, 2013 at 9:16 AM, Shankar Easwaran >> <shankare at codeaurora.org>**wrote: >> >> On
2013 Oct 11
0
[LLVMdev] [lld] Handling a whole bunch of readers
Ah Sorry. Totally forgot about that. On 10/10/2013 8:24 PM, Rui Ueyama wrote: > # is a line comment chracter in YAML so it's valid. That's why I wrote a > simple magic "comment". > > > On Thu, Oct 10, 2013 at 6:21 PM, Shankar Easwaran > <shankare at codeaurora.org>wrote: > >> On 10/10/2013 5:00 PM, Rui Ueyama wrote: >> >>> On Thu,
2013 Oct 11
1
[LLVMdev] [lld] Handling a whole bunch of readers
So I talked with Shankar on IRC on this topic, and here's a suggestion. 1. Use a magic comment to determine if it's a YAML file. I'd propose "#!obj" as a YAML file magic because of similarity of Unix shebang. YAML reader skips this first line because it's a comment line in YAML grammar. 2. Add "target" field to YAML to represent what machine type the object
2013 Oct 10
2
[LLVMdev] [lld] Handling a whole bunch of readers
On Thu, Oct 10, 2013 at 9:16 AM, Shankar Easwaran <shankare at codeaurora.org>wrote: > On 10/9/2013 11:19 PM, Rui Ueyama wrote: > >> >> Isnt having a YAML file starting with the below better, so that you dont >> need to go through file extensions. >> >> magic : >> arch: >> >> I guess we will use a fixed file extension anyway (we probaly
2013 Oct 11
0
[LLVMdev] [lld] Handling a whole bunch of readers
On 10/10/2013 5:00 PM, Rui Ueyama wrote: > On Thu, Oct 10, 2013 at 9:16 AM, Shankar Easwaran > <shankare at codeaurora.org>wrote: > >> On 10/9/2013 11:19 PM, Rui Ueyama wrote: >> >>> Isnt having a YAML file starting with the below better, so that you dont >>> need to go through file extensions. >>> >>> magic : >>> arch:
2013 Oct 10
0
[LLVMdev] [lld] Handling a whole bunch of readers
On 10/9/2013 11:19 PM, Rui Ueyama wrote: > > Isnt having a YAML file starting with the below better, so that you dont > need to go through file extensions. > > magic : > arch: > > I guess we will use a fixed file extension anyway (we probaly don't want to > use .txt for YAML object file for example), so what do you think is the > benefit of depending on special
2013 Aug 28
2
[LLVMdev] [lld] -emit-yaml doesnot contain linker added symbols specified with command line options
Hi, Right now, linker added symbols specified by the -u option do not endup in the output YAML file. This is because the target specific Writers dont get called, which creates the undefined atoms. I am in the process of adding more options and I would like the atoms created internally by the options available in the output YAML file. The options that I am trying to consider for the linker
2015 Feb 07
2
[LLVMdev] [lld] Representation of lld::Reference with a fake target
I'm not planning to remove YAML. YAML is important for testing. On Fri, Feb 6, 2015 at 3:57 PM, Shankar Easwaran <shankare at codeaurora.org> wrote: > I am fine with it. I hope you are not planning to remove YAML. > > > On 2/6/2015 4:54 PM, Rui Ueyama wrote: > > Can we remove Native format support? I'd like to get input from anyone who > wants to keep the