Displaying 20 results from an estimated 500 matches similar to: "Easy way to add properties to a model?"
2018 Jan 15
0
Checking when Register Allocation has been performed
Maybe
MF.getProperties().hasProperty(MachineFunctionProperties::Property::NoVRegs))?
~Craig
On Mon, Jan 15, 2018 at 12:07 PM, Martin J. O'Riordan via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi LLVM Devs,
>
>
>
> I have some shared code that performs lowering operations that can occur
> before or after register allocation. When it is pre-RA I want to only use
2006 Aug 13
2
Arbitrary "Columns" for ActiveRecord
I''m having a bit of a tough time coming up with a good solution for what
I''m trying to do. I''ve come up with a couple of solutions that work
pretty well but many use way too many queries or are just not very good.
Basically I want to store something of a property list for a model.
class Model < AR
has_many :properties, :dependent => :delete
end
class
2018 Jan 15
3
Checking when Register Allocation has been performed
Hi LLVM Devs,
I have some shared code that performs lowering operations that can occur
before or after register allocation. When it is pre-RA I want to only use
virtual registers for intermediate results, but post-RA I have to use only a
very restricted set of physical registers.
Code generation using the restricted set is not as efficient as it is when I
can use virtual registers. At
2018 Jan 16
2
Checking when Register Allocation has been performed
Please don't rely on this for checking whether regalloc was run: You can have functions without vregs pre-RA[1].
We don't need or should track state such as pre/post-RA as part of the function. Instead it really is a property of where a pass was scheduled, so the pass should know and not the function.
I'd recommend simply creating a pre-RA and a post-RA pass instead of scheduling the
2006 Jul 06
4
Need advice on code-like columns
Hello!
I''m trying to move to rails from traditional web app.
As Rails has some conventions about table schema,
I met some obstacles.
Questions.
1.
This is a sort of general question. Do you make a code table for things
like the following?
Activity Status Codes
01001: Open
01002: Pending
01003: Delayed
01004: Cancelled
01005: Closed
(The first 2 digits are code category.)
Would you
2006 Jan 04
2
Creating a model that acts as a settings manager
Hi,
I was wondering how could you create a model that is tied to all the
records in one table, and retrieves the values of all records on first
load, and also handles the updating of its values.
For example, suppose I have this table:
id INT(11) PK
group CHAR(40)
name CHAR(40)
value CHAR(128)
updated_at DATETIME
Sample rows:
group name value
---------------------------
main something
2016 Feb 09
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
On Mon, Feb 8, 2016 at 12:45 PM, Hans Wennborg <hans at chromium.org> wrote:
> Chris Bieneman is probably your best bet, and maybe also Dan Liew.
>
Hans,
My current, and hopefully final, revision of the proposed patch
is simplified and reworked to solve the problem entirely from cmake
without touching the the llvm-build python scripts. Basically, the new
fix for avoiding the
2006 Jan 06
2
Re: Some advice on DB modeling
I have more or less the same problem. I''m trying to build a system where
users can enter their friends. But the solutions seems not to work for me.
I used same sql:
CREATE TABLE `friends` (
`user_id` int(11) NOT NULL default ''0'',
`friend_id` int(11) NOT NULL default ''0'',
KEY `user_id` (`user_id`),
KEY `friend_id` (`friend_id`),
2016 Feb 06
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
Hans,
I have posted a complete patch for solving the linkage issues
with LLVM_LINK_LLVM_DYLIB on Phabricator at
http://reviews.llvm.org/D16945. The bulk of the fix the simple
changes of...
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake (revision 259743)
+++ cmake/modules/AddLLVM.cmake (working copy)
@@
2006 Mar 31
3
Layout Question .. (Sitemesh related)
Hi,
I understand that the layout concept is very similar to OpenSymphony''s
Sitemesh project. I have done a lot of development with Sitemesh, but am
fairly new to Rails. I am wondering if there is a way for a layout in
rails to find out value of a variable from a page it is decorating?
In sitemesh you would be able to do <meta name="show_menu"
content="true"> on
2007 Sep 27
2
rJava and RJDBC
I am desperate for help.
I am trying to get the RJDBC and rJava .5to work on both my windows xp
and linux Redhat EL5 Server. On both I get a
ava.lang.ClassNotFoundException when calling JDBC().
My example is
require(RJDBC)
classPath='C:\\libraries\\mysql-connector-java-5.1.3-rc\\mysql-connector-java-5.1.3-rc-bin.jar'
driverClass=c("com.mysql.jdbc.Driver")
drv <-
2018 Jan 17
0
Checking when Register Allocation has been performed
Thanks Matthias,
I have both a pre-RA and a post-RA scheduler, and I had thought that I could track “has RA happened?” by setting a flag in my pre-RA scheduler as it completes - my suspicion (which you have confirmed) was that “#vregs == 0” was not a safe assumption. What I cannot be sure of, is what passes execute after my pre-RA scheduler but before RA, and what passes execute after RA but
2006 Jan 06
3
Error Handling
Hi,
I am doing a project on invoice. For that I have to use a page both for
crating new invoices and for updation of existing invoices. The problem
is that when an error occures, I can''t maintain the same page for error
correction. How can I redirect it from the controller ? Or can I display
ruby errors before submit of the page in ruby?
Thanks..
Sainaba.
--
Posted via
2009 Sep 14
2
[PATCH node-image] add livecd-iso-to-iscsi script to support iscsi root booting setup
This enables the ability to take the ovirt-node-image iso and deploy it to an iscsi disk. It also provides a sample pxe configuration for booting based on the iscsi root device. Includes support for user/password as well as reverse chap user/password.
---
Makefile.am | 1 +
livecd-iso-to-iscsi | 201 ++++++++++++++++++++++++++++++++++++++++++++++
ovirt-node-image.spec.in |
2014 Aug 23
3
[LLVMdev] [3.5 Release] Release Candidate 3 Now Available - CMake build error
> Run it through its phases and report any bugs you find!
[ 1495s] CMake Warning (dev) at projects/dragonegg/CMakeLists.txt:34 (get_target_property):
[ 1495s] Policy CMP0026 is not set: Disallow use of the LOCATION target property.
[ 1495s] Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
[ 1495s] command to set the policy and suppress this warning.
[
2007 Jun 17
2
Branch 'as' - libswfdec/swfdec_as_interpret.c
libswfdec/swfdec_as_interpret.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
New commits:
diff-tree 38fbc1389267e593b44041018cbb1750bdcce0fb (from aaca94203d8a0ccb8feb32c0d57df3401fca0350)
Author: Benjamin Otte <otte at gnome.org>
Date: Sun Jun 17 14:19:45 2007 +0200
actually convert the values to a string when comparing strings
diff --git
2008 Dec 14
1
Help - java.library.path
Hello all,
I`m a computer science student from Frankfurt/main (germany).
Our student team (10 students) are working on a R/Interface project (Java
and R) and we have a problem with R and JRI.
We are working on 10 computers with Windows XP SP2, R 2.8.0, jdk1.6.0_11
and the same classpath setttings but our application works only on two
computers. We can't explain us this.
2016 Sep 14
1
problem with bindings configure script
Olly,
I think the confdefs.h issue was due to the fact that I was using
XAPIAN_CONFIG to point to the configure script, rather than the
xapian_config executable created when making xapian_core, as pointed out by
James.
Also, as a general note, when trying to make the bindings, I had a problem
when make was trying to compile the java source in org/xapian
The following line:
$(JAVAC)
2013 Jan 08
0
[LLVMdev] [cfe-dev] ARM failures
On Tue, Jan 8, 2013 at 10:01 AM, David Tweed <David.Tweed at arm.com> wrote:
> | Certainly slow builders are problematic. The phase-based building
> | system David Dean is setting up may help mitigate some of this (it
> | should make better use of the resources we have, as well as allowing
> | us to benefit (in the form of smaller blame lists, though not
> | necessarily lower
2009 Aug 12
4
TV-out modesetting DDX patches
[PATCH 1/3] kms: Don't hardcode the output properties
[PATCH 2/3] kms: Implement output->get_property when RandR1.3 is available.
[PATCH 3/3] kms: Add TV-out support
src/drmmode_display.c | 403 ++++++++++++++++++++++++++++++++-----------------
1 files changed, 261 insertions(+), 142 deletions(-)