Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Runtime Array-Length"
2013 Oct 14
0
[LLVMdev] Runtime Array-Length
The toy language I've been playing around with represents all strings as a
struct in llvm;
struct string{
char *ptr;
int str_len;
int buffer_len;
}
And my AST has an interface like;
String_AST{
int measure();
void copy(char *dest);
struct string get_value();
}
A constant string can be measured at compile time, for a string variable
measure() just extracts str_len. Strings
2013 Oct 14
1
[LLVMdev] Runtime Array-Length
However, how would one allocate the buffer for a string if you did not know
the length of the string at compile time?
For instance, using the api how would one reproduce the code for the
following c++ function?
std::string add(std::string a, std::string b){
return a+b;
}
When allocating the buffer required for the new string, one can determine
the length at runtime, however I do not know how
2013 Nov 09
2
[LLVMdev] Variable-length Phi-node
All,
Is it possible to create something which has the same effect of a
variable-length phi node in the C++ api. Specifically, create a phi-node
where the number of incoming values is not known at the time of its
creation.
If there is no such way of creating a phinode like that, would it be
possible to create a dummy instruction and perform a replaceAllUsesWith? If
so, what should the dummy
2013 Nov 09
0
[LLVMdev] Variable-length Phi-node
On 9 Nov 2013, at 16:35, William Moses <moses.williamsteven at gmail.com> wrote:
> Is it possible to create something which has the same effect of a variable-length phi node in the C++ api. Specifically, create a phi-node where the number of incoming values is not known at the time of its creation.
The PHI node preallocates its storage, so no.
> If there is no such way of creating a
2013 Nov 09
1
[LLVMdev] Variable-length Phi-node
You can call addIncoming().
/// addIncoming - Add an incoming value to the end of the PHI list
///
void addIncoming(Value *V, BasicBlock *BB) {
assert(V && "PHI node got a null value!");
assert(BB && "PHI node got a null basic block!");
assert(getType() == V->getType() &&
"All operands to PHI node must be the same
2016 Dec 06
2
2.2.27 panic file mail-index-map.c: line 549 (mail_index_map_lookup_seq_range): assertion failed: (first_uid > 0)
On 06.12.2016 09:32, Toni Mattila wrote:
> Hi,
>
> On 05-Dec-16 20:28, Toni Mattila wrote:
>> Panicing stopped when all index files where deleted.
>
> It happens again in same user account, so rebuilding indexes didn't
> fix it.
>
> Here's bt full instead of just bt:
> #0 0x001d4402 in __kernel_vsyscall ()
> No symbol table info available.
> #1
2004 Nov 23
5
vampire fails because of Debian smbldap-tools problem
Hi people,
As usual I've tried a number of different approaches to this problem
and can't figure it out. I don't have enough knowledge. Every time I do
net rpc vampire I get this crap spewed at me:
Use of uninitialized value in substitution (s///) at
/usr/share/perl5/smbldap_tools.pm line 106, <CONFIGFILE> line 233.
Use of uninitialized value in substitution (s///) at
2017 Sep 08
5
EOF from net_disconnect(fd)
I?m working on an OS project from github. There are two parts:
Dovecot plugin - https://github.com/st3fan/dovecot-xaps-plugin
Daemon written in Go - https://github.com/st3fan/dovecot-xaps-daemon
# dovecot --version
2.2.10
Both parts worked fine on CentOS 6 but I recently rebuilt them both for CentOS 7 and have run into some errors.
The plugin sends a notification over a socket to
2005 Aug 19
9
Patch for listbook.rb
Attached is a patch file for listbook.rb
1) Message box scrolls properly now
2) Blank lines are skipped when adding pizzas and ice cream
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Mar 19
3
How can I access an attribute via a symbol?
In my model I''d like to write a method that accesses the attributes by
name. A very simple implementation would be
class MyModel < ActiveRecord::Base
def get_value(attribute)
return value_of_attribute
end
end
Then I can call it with m.get_value(:name) to get the value of the
name column in the db. I''m not sure what to put in for
2004 May 22
10
Tabbing between Notebook pages
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxTony.rbw
Type: application/octet-stream
Size: 10436 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040522/9c1889d0/wxTony.obj
2014 Apr 08
2
Test de Moses
¿Alguien sabe si el test de reacciones extremas de Moses está escrito en
algún paquete de R?
Gracias de antemano.
2015 Mar 14
3
[LLVMdev] stability of llvm ir across releases
Are you saying the textual form of IR can change, but bitcode doesn't? I
don't know what you mean by assembly syntax.
Is there a changlog entry when the textual IR changes?
On Sat, Mar 14, 2015 at 5:22 AM, Jeremy Lakeman <Jeremy.Lakeman at gmail.com>
wrote:
> Assembly syntax can and will break between versions. But bitcode should
> generally be upgradeable, or a bug should
2013 May 21
4
[LLVMdev] malloc / free & memcpy optimisations.
The front end I'm building for an existing interpreted language is
unfortunately producing output similar to this far too often;
define void @foo(i8* nocapture %dest, i8* nocapture %src, i32 %len)
nounwind {
%1 = tail call noalias i8* @malloc(i32 %len) nounwind
tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %1, i8* %src, i32 %len, i32
1, i1 false)
tail call void
2007 May 14
3
[Bug 567] ulogd writes invalid len field in per-packet headers
https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=567
------- Additional Comments From kaber@trash.net 2007-05-14 14:28 MET -------
There are two len fields, caplen and len. Which one is wrong?
--
Configure bugmail: https://bugzilla.netfilter.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
2016 Mar 16
3
IRBuilder Assignment ( '=' ) operator?
I partially worked out that to do an assign I will need to manually assign a temporary first and then load data into it, which also means I'll need to set up a temporaries list in my code assembler as allocations must be done before anything else? or is it fine to allocate a variable mid-way through a function and the compiler will manage it?
With that as well, if I had a function that loads
2014 Aug 08
2
[PATCH 1/2] Add type checking, support integers as value
Before this patch, Python would segfault once you pass a non-string key
or value to node_set_value. It was also not possible to set bytes on
Python 3 as Unicode was assumed (Python 2 was not affected by this).
This patch fixes recognition of bytes for Python 3, but in addition it
recognizes ints (includes 'long' in Python 2) for DWORD (LE + BE) and
QWORDs. For this purpose, a new field
2017 Jun 12
4
How to know the sub-class of a Value class?
On 11 June 2017 at 23:06, Jeremy Lakeman <Jeremy.Lakeman at gmail.com> wrote:
> http://llvm.org/docs/ProgrammersManual.html#the-isa-cast-and-dyn-cast-
> templates
>
I understand isa and dyn-cast let you test the type of an object at
run-time by leveraging LLVM's custom implementation of RTTI. However, it
doesn't make much sense to test out for all possible sub-classes to
2014 Jul 23
3
[LLVMdev] On semantics of add instruction - nsw,nuw flags
On Wed, Jul 23, 2014 at 4:06 PM, Rekha R <rekharamapai at nitc.ac.in> wrote:
> Ok. Got it.
>
> If *add nsw* overflows, this results in undefined value.
> But then *add* on same arguments results in well-defined value.
>
> Hence treating first one as redundant based on the second is acceptable.
> But vice versa is not.
>
If they are in different code paths, sure.
2008 May 03
2
sqlite3, inserting values in database
hi,
i have a small form of textfields and i need to add these informations
to a table in sqlite3 database. but i dont know how to do it. i mean
that its small address book program. and ''id'' from ''clients'' table has
to increments. i open database with : db = Database.open("data.db"), but
then i dont know what to do...
anyone can help?
--
Posted via