search for: cleanest

Displaying 20 results from an estimated 496 matches for "cleanest".

2012 Oct 16
1
[LLVMdev] Cleanest way to do llvm-driven compile with specified passes
Hi there, I have a target platform for which I'm compiling code with llvm and my own backend. My current compilation route to create an executable is to just call something like: $ clang -O3 -ccc-host-triple arcompact [-I...] file_to_compile.c another_file.c [-lm etc] Importantly, clang here is running with the target version of gcc as the driver, so that gcc (call it gcc-arcompact) takes
2006 Jul 20
1
cleanest, least hideous way to do dropdown date validation?
My customer has dropdowns like this: Year Month Day If you submit with month selected and year blank, it subs in a year arbitrarily. Worse still, it subs in the year 5. I have no idea why. It seems a pernicious default. Anyway, they''re developing an app, they''re a designer turned coder, turning to a real programmer (me, allegedly) to make sense of the madness they''ve
2014 Aug 30
1
Cleanest way to find out if it was a --dry-run
Hi, As far as I can see, the only way you can tell it's been a dry-run at the receiver-side, is to parse RSYNC_ARGs in the pre-xfer script. I think the only way is to crawl through the RSYNC_ARGs to find a value which: - starts with a single dash, and; - contains 'n', and; - comes prior to the "." value, signifying the start of the 'path args' (which seem inherently
2003 Aug 12
1
Re: [R-SIG-Mac] cleanest build I can think of
Thanks Byron, I assume you use new Devel Tool updates and nothing from fink? Can other people with new dev tools check this (for example Jan?) It would be nice to update the instuction page (and R-admin in the future) some general notes: 1. there is no need to configure with --without-x as X11 can now be used from inside RAqua 2. please use R-devel and not R-Sig-Mac as we will soon close this
2010 Nov 12
3
Best way to configure proprietary NVidia driver on CentOS ?
Hi, What's the best (cleanest, easiest, whatever) way to install the proprietary NVidia driver on CentOS 5.5 ? Usually I'm using the RPMForge 3rd party repo and compile the odd missing package myself from a Fedora SRPM. But the nvidia packages look a bit like a mess. DKMS has errors in the startup script (looking for a...
2009 Oct 19
3
apache env vars - best practices
...Using the SetEnv directive in my httpd.conf file. I'm crazy about neither one as they both have limitations; 1 - I don't like giving Apache its own shell. 2 - The SetEnv directive only takes 2 args so if I have a var with multiple values like a path, it won't work. What's the cleanest way to set complex env vars for Apache?
2018 Dec 28
2
Advice for Porting SafeStack to New Pass Manager
...ass for the new PM. The only trouble I see with this is that this will require a lot of refactoring (that I started but haven't finished), since TargetPassConfig is the parent to many other passes/analyses and these classes override many virtual methods in TargetPassConfig, so it may not be the cleanest solution and potentially prone to a lot of error. Another potential idea which I am exploring in parallel to the first is to instead make the existing TargetPassConfig also a pass that works with the new PM by adding a run() method. This seems like less work, but feels incorrect since I'm shov...
2014 Oct 20
2
[LLVMdev] [RFC] New ToolsSupport library for stuff that only tools need
There is no real technical requirement for this. Currently we work around the signal handlers by building with ENABLE_CRASH_OVERRIDES=NO, and carrying along the command line parsing code and ToolOutputFile isn’t really a big drain. This seemed to me like the cleanest way to accomplish a goal of mine. The goal I have is to be able to build an LLVM dylib and llc/opt/etc from the same CMake invocation where the dylib does not have crash overrides and signal handler hooks, but the tools do. There are other ways to accomplish this, but I felt that separating libLLV...
2016 Oct 28
4
Compiler used to build LLVM
Hello, We’d like to keep track of which clang version was used to build our LLVM binaries. We use cmake and ninja with clang to build. What do you people think would be the cleanest way to know which version of clang is used, on a user’s machine, to build those binaries. I’m hoping to script this. I was thinking that getting cmake/ninja to spit out this information, if possible, would probably be best. Thank you for your help, - Maxime
2008 Jan 04
7
best way to modify spec (the command-line tool)?
...conds, and we use more precise language, and highlight the spec in red via terminal colors, etc. But the way it works is a bit ghetto. We just manually hacked it onto the Rails example groups (it''s a Rails project) and then added a shell env var to turn it on and off. What''s the cleanest way to implement this? Add a -profiling command-line flag to spec itself? Is there a single point of entry and exit for running individual specs that I can put the code around? It''s currently manually hacked onto each example group individually and it seems a bit untidy. -- Giles Bowkett...
2014 Oct 31
3
[LLVMdev] [RFC] New ToolsSupport library for stuff that only tools need
...rote: > > There is no real technical requirement for this. Currently we work around > the signal handlers by building with ENABLE_CRASH_OVERRIDES=NO, and > carrying along the command line parsing code and ToolOutputFile isn’t > really a big drain. > > This seemed to me like the cleanest way to accomplish a goal of mine. The > goal I have is to be able to build an LLVM dylib and llc/opt/etc from the > same CMake invocation where the dylib does not have crash overrides and > signal handler hooks, but the tools do. > > There are other ways to accomplish this, but I fel...
2005 Dec 22
1
Hiding a function from ls()
I need to define a small helper function which should not be listed by ls(). What is the best and cleanest way of achieving this? -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2009 Aug 20
2
[LLVMdev] How to force MemoryDependenceAnalysis to run on original module
...ionPass requires another FunctionPass which performs all the necessary analyses. This AnalysisPass again requires MemoryDependenceAnalysis. The problem is, that I would like MemoryDependenceAnalysis to run on the unaltered module. I do not want to have dependencies to changed code. What is the cleanest way to do this? Sounds easy, but I do not get it right :D Thanks Marc
2014 Aug 04
2
[PATCH 09/19] drm/radeon: handle lockup in delayed work, v2
...a pain to deal with gpu reset. Yeah, well that's nothing new. > I've now tried other solutions but that would mean reverting to the old style during gpu lockup recovery, and only running the delayed work when !lockup. > But this meant that the timeout was useless to add. I think the cleanest is keeping the v2 patch, because potentially any waiting code can be called during lockup recovery. The lockup code itself should never call any waiting code and V2 doesn't seem to handle a couple of cases correctly either. How about moving the fence waiting out of the reset code? Christian...
2012 Sep 10
10
[PATCH] mem_event: fix regression affecting CR3, CR4 memory events
This is a patch repairing a regression in code previously functional in 4.1.x. It appears that, during some refactoring work, calls to hvm_memory_event_cr3 and hvm_memory_event_cr4 were lost. These functions were originally called in mov_to_cr() of vmx.c, but the commit http://xenbits.xen.org/hg/xen-unstable.hg/rev/1276926e3795 abstracted the original code into generic functions up a level in
2015 Apr 01
3
[LLVMdev] LTO, Code Generation Options, etc
...ging of target-cpu/target-feature/triple at link time code generation. > > - Not convinced here of the facility to do so. Could just recompile the individual bitcode files to get what you want, but there are some users that are trying to ship bitcode (as crazy as that sounds). IMO, it's cleanest of the target-cpu/target-feature/etc. are set at compile time. That's where users are accustomed to specifying codegen options already, and besides: the frontend needs to know the backend in order to conform to the ABI, set macros, emit calls to target-specific intrinsics, etc. I'll send...
2009 Jun 27
6
User has many topics or subtopics
Hi, So i have users in the system and i have topics. Topics also have_many subtopics. What is the cleanest way to setup the AR relationships if a user can either have_many topics or subtopics ? Its basically a dual select box dropdown, where the second dropdown is optional. Is the best to have user_topics, and user_subtopics tables and manage that way ? or combine into one table with STI and a type ?...
2015 Jan 27
4
[LLVMdev] Making a CopyToReg/CopyFromReg into a zext/sext?
I have a CopyToReg that is moving a 16bit reg to a 32bit reg, it's currently being mapped out as a simple mov (not an ext), I would like to change that to an ext. It seemed that the SelDAG was the easiest and cleanest way to do this. I can change the mov to an extension MI in the .td file; however, I can't tell at that point whether it's a sext or a zext, so it seemed the SelDAG was the better place to fix this. Thanks. On Tue, Jan 27, 2015 at 3:38 PM, Matt Arsenault <Matthew.Arsenault at amd.com&g...
2006 Nov 08
3
How to implement status codes in DB and Rails
...ription every time. Approach C, have a new status look up table, which would have an id column and a description, and the products table would then have a status id, which if the description was required would include the status table in the find. This seems a bit over the top but maybe is the cleanest way and status can be added and descriptions changed without any changes to application code. Approach D, have a new table with status codes I, O, D but that would mean hard coding a lot of the queries as find_by_sql, to have the table join, as there is no id column on the status table. Andrew...
2011 Mar 22
2
Data frame and function that requires vector as input
Hi, I have a data.frame(zscores) that looks like this: gA gB g1 0.2 0.6 g2 0.3 Na My problem is that I need to use a function and the output is a vector of only the non NA values, so shorter than the list I would obtain dropping the data.frame. What is the cleanest way to keep row and column names or putting the values back into the same data frame format? The function is fdrtool() and I can compute the values I'm interested like this: FDR=fdrtool([!is.na(zscores)])$qval But at this point I don't know how to track back these values, to the origina...