search for: addstr

Displaying 20 results from an estimated 37 matches for "addstr".

2009 Oct 26
1
[LLVMdev] RegAllocSimple doesn't work
...ine DITTO -1 # define DASH '-' # define TAB 9 # define NEWLINE 10 # define CLOSIZE 1 typedef char character; typedef char string[MAXSTR]; bool getline(s, maxsize) char *s; int maxsize; { char *result; result = fgets(s, maxsize, stdin); return (result != NULL); } int addstr(c, outset, j, maxset) char c; char *outset; int *j; int maxset; { bool result; if (*j >= maxset) result = false; else { outset[*j] = c; *j = *j + 1; result = true; } return result; } char esc(s, i) char *s; int *i; { char result; if (s[*i] != ESCAPE) result = s...
2009 Oct 22
0
[LLVMdev] request for help writing a register allocator
Hi Susan, > But this doesn't seem to be happening; the stores to memory are there but > the loads are not. > > Any ideas what's going wrong? Are you using VirtRegMap::addSpillPoint and VirtRegMap::addRestorePoint ? If not you may need to add calls to them to let the rewriter know where to insert the loads/stores. > If not, any advice on how to generate the loads
2009 Oct 22
4
[LLVMdev] request for help writing a register allocator
I found the problem! My generated code is spilling correctly but is not reloading at all. For example, if the original code has the equivalent of this (where %1024 is a virtual reg): %1024 = xxx ... yyy = %1024 and I find no physical register for %1024, then I assign it to physical register %edi and to a stackslot. That creates code like this: %edi = xxx store from %edi to the
2014 Mar 21
0
[PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics
...update_drilldown(): + if not fields_filter: + if drilldown: + stats.set_fields_filter(None) + else: + stats.set_fields_filter(r'^[^\(]*$') + update_drilldown() + def refresh(sleeptime): + screen.erase() + screen.addstr(0, 0, 'vhost statistics') + row = 2 + s = stats.get() + def sortkey(x): + if s[x][1]: + return (-s[x][1], -s[x][0]) + else: + return (0, -s[x][0]) + for key in sorted(s.keys(), key = sortkey): + if ro...
2015 May 19
2
[LLVMdev] Module crash when adding CallInst
...e ins CallInst *call = Builder.CreateCall(func, "callins"); // call to func 0 clang 0x0000000001492ec2 llvm::sys::PrintStackTrace(_IO_FILE*) + 34 1 clang 0x0000000001490f61 2 libpthread.so.0 0x00002b33bd0ee340 3 clang 0x00000000016a43a6 llvm::DwarfUnit::addString(llvm::DIE&, llvm::dwarf::Attribute, llvm::StringRef) + 22 4 clang 0x00000000016c2003 llvm::DwarfCompileUnit::applyVariableAttributes(llvm::DbgVariable const&, llvm::DIE&) + 915 5 clang 0x000000000168bdfe llvm::DwarfDebug::finishVariableDefinitions() + 270 6 cla...
2009 Feb 11
6
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
I needed these for some work I'm doing in clang... -------------- next part -------------- A non-text attachment was scrubbed... Name: set.patch Type: application/octet-stream Size: 1925 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090211/82192816/attachment.obj>
2011 Feb 24
0
[LLVMdev] [patch] Dwarf Debug info support for COFF object files
...Asm->GetTempSymbol("section_line")); else - addUInt(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0); + addSectionOffset(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_addr, + Asm->GetTempSymbol("section_line")); if (!Dir.empty()) addString(Die, dwarf::DW_AT_comp_dir, dwarf::DW_FORM_string, Dir); You probably wanted to do... @@ -1904,8 +1913,8 @@ // DW_AT_stmt_list is a offset of line number information for this // compile unit in debug_line section. if (Asm->MAI->doesDwarfUsesAbsoluteLabelForStmtList()) - add...
2012 Apr 10
3
[PATCH 0/2] adding tracepoints to vhost
To help in vhost analyzing, the following series adding basic tracepoints to vhost. Operations of both virtqueues and vhost works were traced in current implementation, net code were untouched. A top-like satistics displaying script were introduced to help the troubleshooting. TODO: - net specific tracepoints? --- Jason Wang (2): vhost: basic tracepoints tools: virtio: add a
2012 Apr 10
3
[PATCH 0/2] adding tracepoints to vhost
To help in vhost analyzing, the following series adding basic tracepoints to vhost. Operations of both virtqueues and vhost works were traced in current implementation, net code were untouched. A top-like satistics displaying script were introduced to help the troubleshooting. TODO: - net specific tracepoints? --- Jason Wang (2): vhost: basic tracepoints tools: virtio: add a
2006 Oct 17
0
[PATCH] misc compile fixes for tools on Solaris
...t;time.h> @@ -266,7 +267,7 @@ static void print(const char *fmt, ...) if (!batch) { if((current_row() < lines()-1)) { va_start(args, fmt); - vw_printw(stdscr, fmt, args); + vwprintw(stdscr, (char *)fmt, args); va_end(args); } } else { @@ -280,7 +281,7 @@ static void attr_addstr(int attr, const static void attr_addstr(int attr, const char *str) { attron(attr); - addstr(str); + addstr((char *)str); attroff(attr); } @@ -1035,7 +1036,9 @@ int main(int argc, char **argv) nonl(); keypad(stdscr, TRUE); halfdelay(5); +#ifndef __sun__ use_default_colors(); +#...
2011 Feb 24
2
[LLVMdev] [patch] Dwarf Debug info support for COFF object files
On Feb 24, 2011, at 11:36 AM, Devang Patel wrote: > > On Feb 12, 2011, at 2:07 AM, Nathan Jeffords wrote: > >> Hello All, >> >> I have created a set of patches that get dwarf debugging support working for the COFF object file. I also believe I have fixed what appears to be a bug in how line info sections are referred to from the DW_TAG_compile_unit DIE. I have run
2014 Mar 21
5
[PATCH RFC V2 0/4] Adding tracepoints to vhost/net
Recent debugging on vhost net zerocopy shows the need of tracepoints. So to help in vhost{net} debugging and performance analyzing, the following series adding basic tracepoints to vhost. Operations of both vhost and vhost_net were traced in current implementation. A top-like satistics displaying script were introduced to help the troubleshooting: vhost statistics vhost_virtio_update_used_idx
2014 Mar 21
5
[PATCH RFC V2 0/4] Adding tracepoints to vhost/net
Recent debugging on vhost net zerocopy shows the need of tracepoints. So to help in vhost{net} debugging and performance analyzing, the following series adding basic tracepoints to vhost. Operations of both vhost and vhost_net were traced in current implementation. A top-like satistics displaying script were introduced to help the troubleshooting: vhost statistics vhost_virtio_update_used_idx
2013 Oct 11
2
[LLVMdev] [Debug Info PATCH] for support of ref_addr and removal of DIE duplication
...anmanren/llvm_git/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1505 >> >> If we look at DwarfCompileUnit.cpp: >> VariableDIE = new DIE(GV.getTag()); >> // Add to map. >> insertDIE(N, VariableDIE); >> >> // Add name and type. >> addString(VariableDIE, dwarf::DW_AT_name, GV.getDisplayName()); >> addType(VariableDIE, GTy); >> >> The VariableDIE is not added to an owner yet when calling addType. >> >> Thanks, >> Manman >> >> >> >> >>> Manman >>> >&g...
2013 Oct 10
4
[LLVMdev] [Debug Info PATCH] for support of ref_addr and removal of DIE duplication
...:createGlobalVariableDIE (this=0x102e13ec0, N=0x102e068c0) at /Users/manmanren/llvm_git/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1505 If we look at DwarfCompileUnit.cpp: VariableDIE = new DIE(GV.getTag()); // Add to map. insertDIE(N, VariableDIE); // Add name and type. addString(VariableDIE, dwarf::DW_AT_name, GV.getDisplayName()); addType(VariableDIE, GTy); The VariableDIE is not added to an owner yet when calling addType. Thanks, Manman > Manman > >> >> >> >> On Wed, Oct 9, 2013 at 10:45 AM, Manman Ren <manman.ren at gmail.co...
2013 Oct 15
2
[LLVMdev] [Debug Info PATCH] for support of ref_addr and removal of DIE duplication
...anmanren/llvm_git/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1505 >> >> If we look at DwarfCompileUnit.cpp: >> VariableDIE = new DIE(GV.getTag()); >> // Add to map. >> insertDIE(N, VariableDIE); >> >> // Add name and type. >> addString(VariableDIE, dwarf::DW_AT_name, GV.getDisplayName()); >> addType(VariableDIE, GTy); >> >> The VariableDIE is not added to an owner yet when calling addType. >> > > I believe I have addressed all review comments, the patches are > re-attached here for convenie...
2013 Oct 15
0
[LLVMdev] [Debug Info PATCH] for support of ref_addr and removal of DIE duplication
...N=0x102e068c0) at > /Users/manmanren/llvm_git/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1505 > > If we look at DwarfCompileUnit.cpp: > VariableDIE = new DIE(GV.getTag()); > // Add to map. > insertDIE(N, VariableDIE); > > // Add name and type. > addString(VariableDIE, dwarf::DW_AT_name, GV.getDisplayName()); > addType(VariableDIE, GTy); > > The VariableDIE is not added to an owner yet when calling addType. > I believe I have addressed all review comments, the patches are re-attached here for convenience. Manman -------------- ne...
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
...self.cf.images[y] if y > self.start_image + maxy: @@ -311,7 +312,7 @@ class Grub: l = img.lines[idx].expandtabs().ljust(70) if len(l) > 70: l = l[:69] + ">" - + self.entry_win.addstr(idp, 2, l) if idx == curline: self.entry_win.attroff(curses.A_REVERSE) @@ -349,7 +350,7 @@ class Grub: self.command_line_mode() if self.isdone: return - + # bound at the top and...
2013 Oct 15
4
[LLVMdev] [Debug Info PATCH] for support of ref_addr and removal of DIE duplication
...pp:1505 >>>> >>>> If we look at DwarfCompileUnit.cpp: >>>> VariableDIE = new DIE(GV.getTag()); >>>> // Add to map. >>>> insertDIE(N, VariableDIE); >>>> >>>> // Add name and type. >>>> addString(VariableDIE, dwarf::DW_AT_name, GV.getDisplayName()); >>>> addType(VariableDIE, GTy); >>>> >>>> The VariableDIE is not added to an owner yet when calling addType. >>>> >>> >>> I believe I have addressed all review comments, th...
2013 Oct 15
0
[LLVMdev] [Debug Info PATCH] for support of ref_addr and removal of DIE duplication
...en/AsmPrinter/DwarfCompileUnit.cpp:1505 >>> >>> If we look at DwarfCompileUnit.cpp: >>> VariableDIE = new DIE(GV.getTag()); >>> // Add to map. >>> insertDIE(N, VariableDIE); >>> >>> // Add name and type. >>> addString(VariableDIE, dwarf::DW_AT_name, GV.getDisplayName()); >>> addType(VariableDIE, GTy); >>> >>> The VariableDIE is not added to an owner yet when calling addType. >>> >> >> I believe I have addressed all review comments, the patches are >> r...