search for: endlin

Displaying 20 results from an estimated 27 matches for "endlin".

Did you mean: endline
2011 Oct 03
4
[LLVMdev] collect end line number for scope
Hi All,   int global; int func( int t) {    //scope 1   {      ....   } <-----   return x; }   For the above code, i want to collect endline (indicated by <---) for the scope. Can we get this information from the Dwarf Information in llvm 2.9 ?     Thanks & Regards, Pankaj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111003/a1626867/a...
2011 Oct 05
2
[LLVMdev] collect end line number for scope
...rget code, I also want to emit scope related information. Scope related information includes, - for each scope, start line, end line, start column, end column and - scope heirarchy. As scope is delimited by "{" and "}" (for an input C/C++ code), hence wanted to collect "endline" for scope. When I went through the ".ll" emitted by llc, i could find the "startline" in metadata.   For this I could think of 2 approaches 1. Create a pass in llvm, to collect this information from the llvm instructions, by simply traversing them.   Identifying line nu...
2018 Apr 12
2
Why LLVM doesn't have debug information of function right parentheses?
What happened with this? Is there something for review in Phabricator? Or was this put-on-hold/forgotten? I also have some users that complain that some gdb test suite tests don't work with LLVM due to missing debug info regarding ending brace. So gettint the location for the "endLine" field of DISubprogram etc should at least be a step in the right direction, and if someone already has a fix for that it sounds interesting. /Björn > -----Original Message----- > From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of > bluechristlove via llvm-dev...
2018 Apr 12
0
Why LLVM doesn't have debug information of function right parentheses?
I added one attribute named EndLine in LLVM IR before. LLVM's part is not hard, but will modify many places in Clang. I success for it, you can try this way. At 2018-04-12 16:53:21, "Björn Pettersson A" <bjorn.a.pettersson at ericsson.com> wrote: >What happened with this? Is there something for review in Pha...
2011 Oct 05
0
[LLVMdev] collect end line number for scope
...t to emit scope related information. > Scope related information includes, > - for each scope, start line, end line, start column, end column > and > - scope heirarchy. > As scope is delimited by "{" and "}" (for an input C/C++ code), hence wanted to collect "endline" for scope. > When I went through the ".ll" emitted by llc, i could find the "startline" in metadata. > > For this I could think of 2 approaches > 1. Create a pass in llvm, to collect this information from the llvm instructions, by simply traversing them. &gt...
2017 Aug 03
2
Why LLVM doesn't have debug information of function right parentheses?
...dev wrote: > >> >> I have implemented this exact behavior in an out of tree LLVM fork I >> maintain, where one of my users needed this behavior, and it seems to >> work well. What we have done is extend the definition of DISubprogram to >> contain a new field "endLine" which holds the line number of the closing >> brace. A pass late in our backend uses this information to set the >> DebugLoc of return instructions in our programs. > > Interesting. I'd have thought the front end could generate the > return-value expression with th...
2011 Oct 04
0
[LLVMdev] collect end line number for scope
Pankaj, On Oct 3, 2011, at 4:36 AM, Pankaj Gode wrote: > Hi All, > > int global; > int func( int t) > { > //scope 1 > { > .... > } <----- > return x; > } > > For the above code, i want to collect endline (indicated by <---) for the scope. Can we get this information from the Dwarf Information in llvm 2.9 ? > If there is no code generated for a source line with just "}", so you are not going to get that line number in debug info (because there is not any llvm instruction). You ca...
2017 Aug 03
0
Why LLVM doesn't have debug information of function right parentheses?
Simon, I also think of the way you did. :-) And from my initial investigation, clang should also has some work(i.e. provide the end location for the "endLine" field of DISubprogram), right? BTW, Simon, your fork of LLVM is open source or not? If open source, could you give the address of it?  Thanks < Simon Cook via llvm-dev> 在 2017-08-04 00:10:59 写道: On 03/08/17 16:21, Robinson, Paul via llvm-dev wrote: > >> >> I have...
2011 Oct 04
2
[LLVMdev] collect end line number for scope
...Pankaj Gode <godepankaj at yahoo.com> Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> Sent: Monday, October 3, 2011 10:32 PM Subject: Re: [LLVMdev] collect end line number for scope On Oct 3, 2011, at 4:36 AM, Pankaj Gode wrote: For the above code, i want to collect endline (indicated by <---) for the scope. Can we get this information from the Dwarf Information in llvm 2.9 ? > I don't know about 2.9 in specific, but current top of tree will get you that information. -eric -------------- next part -------------- An HTML attachment was scrubbed... URL: &lt...
2018 Apr 12
2
Why LLVM doesn't have debug information of function right parentheses?
Hi, On 12/04/2018 15:35, Frozen via llvm-dev wrote: > I added one attribute named EndLine in LLVM IR before. LLVM's part is > not hard, but will modify many places in Clang. I success for it, you > can try this way. > For loops, we use a range to keep track of the start and end of the loop for remarks: http://llvm.org/doxygen/classllvm_1_1Loop_1_1LocRange.html Maybe...
2006 Apr 02
4
Field#to_text
We''re using Vpim to parse iCal and vCard files, and so far it''s been great. However, when we were parsing some iCal files we noticed that all the endlines in the description section were disappearing. I start peering through the source code and find (in the Field#to_text method that is being called): # The value as text. Text can have escaped newlines, commas, and escape # characters, this method will strip them, if present. Is there some reason...
2010 May 13
1
[LLVMdev] libSystem, __clear_cache(), FreeBSD and ARM
Hi folks, I just tried to build LLVM on FreeBSD/arm. It looks like libSystem doesn't build and requires the following hack: --- lib/System/Memory.cpp +++ lib/System/Memory.cpp @@ -61,7 +61,7 @@ for (intptr_t Line = StartLine; Line < EndLine; Line += LineSize) asm volatile("icbi 0, %0" : : "r"(Line)); asm volatile("isync"); -# elif defined(__arm__) && defined(__GNUC__) +# elif defined(__arm__) && defined(__GNUC__) && !defined(__FreeBSD__) // FIXME: Can we safely always...
2011 Oct 03
0
[LLVMdev] collect end line number for scope
On Oct 3, 2011, at 4:36 AM, Pankaj Gode wrote: > For the above code, i want to collect endline (indicated by <---) for the scope. Can we get this information from the Dwarf Information in llvm 2.9 ? > I don't know about 2.9 in specific, but current top of tree will get you that information. -eric -------------- next part -------------- An HTML attachment was scrubbed... URL: &l...
2011 Oct 04
0
[LLVMdev] collect end line number for scope
....com> > Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> > Sent: Monday, October 3, 2011 10:32 PM > Subject: Re: [LLVMdev] collect end line number for scope > > > On Oct 3, 2011, at 4:36 AM, Pankaj Gode wrote: > > For the above code, i want to collect endline (indicated by <---) for the > scope. Can we get this information from the Dwarf Information in llvm 2.9 ? > > I don't know about 2.9 in specific, but current top of tree will get you > that information. > -eric > > > _______________________________________________ &g...
2017 Aug 03
3
Why LLVM doesn't have debug information of function right parentheses?
I have implemented this exact behavior in an out of tree LLVM fork I maintain, where one of my users needed this behavior, and it seems to work well. What we have done is extend the definition of DISubprogram to contain a new field "endLine" which holds the line number of the closing brace. A pass late in our backend uses this information to set the DebugLoc of return instructions in our programs. I haven't yet tidied up and submitted this upstream for review, as without a consumer of this information, the extension itself...
2012 Jun 19
1
how to manipulate dput output format
I am reading into Java dput output for a matrix, more specifically for a file backed big-matrix. I basically need to lift dimnames for a matrix from dput output. It's no big deal, but the code is very 'hackish' due to the need to get rid of quotes, endlines, parenthesis, etc. I was wondering if i could manipulate to an extent dput output with some options that define it, for example, get rid of quoting each element in matirx dimnames somehow. Another great thing wiould be to make dput dump rownames and colnames on two separate lines, but i don'...
2018 Apr 17
0
Why LLVM doesn't have debug information of function right parentheses?
...so he can speak for some of this if he wants to, since they were choices made a while back) On Thu, Apr 12, 2018 at 9:11 AM Florian Hahn via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi, > > On 12/04/2018 15:35, Frozen via llvm-dev wrote: > > I added one attribute named EndLine in LLVM IR before. LLVM's part is > > not hard, but will modify many places in Clang. I success for it, you > > can try this way. > > > > For loops, we use a range to keep track of the start and end of the loop > for remarks: http://llvm.org/doxygen/classllvm_1_1Loop...
2008 Jun 16
6
[LLVMdev] PowerPC instruction cache invalidation
...WERPC__) || defined (__ppc__) || defined(_POWER)) && \ defined(__APPLE__) sys_icache_invalidate(Addr, len); +#elif defined(__GNUC__) + const size_t LineSize = 32; + + const intptr_t Mask = ~(LineSize - 1); + const intptr_t StartLine = ((intptr_t) Addr) & Mask; + const intptr_t EndLine = ((intptr_t) Addr + len + LineSize - 1) & Mask; + + for (intptr_t Line = StartLine; Line < EndLine; Line += LineSize) + asm volatile("dcbf 0, %0" : : "r"(Line)); + asm volatile("sync"); + + for (intptr_t Line = StartLine; Line < EndLine; Line += Lin...
2014 Jun 30
2
Sieve seems to break mailbody during automatic redirection
...lIDAyMDIwNjA5MDQwMzA1^M MDgwMzA1fU1pbmNob3tcKlxmYWx0ID8/XCc4MVwnNjZjfTt9DQp7XGYyMFxmYmlkaSBcZnN3^M ... The part of the mail-header looks normal. But as you can see at beginning of the mailbody something inserts the strange character "^M" after each newline. According to Google this is a endline charachter from Windows. And this seems to break some clients (Eg. Lotus Notes). With dovecot version 2.1.x I don't have this problem. Have you any solution for me? Many thanks Urban Loesch
2018 Apr 17
1
Why LLVM doesn't have debug information of function right parentheses?
...to, since > they were choices made a while back) > > > On Thu, Apr 12, 2018 at 9:11 AM Florian Hahn via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hi, >> >> On 12/04/2018 15:35, Frozen via llvm-dev wrote: >> > I added one attribute named EndLine in LLVM IR before. LLVM's part is >> > not hard, but will modify many places in Clang. I success for it, you >> > can try this way. >> > >> >> For loops, we use a range to keep track of the start and end of the loop >> for remarks: http://llvm.org/d...