Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Symbol table for complex data structure"
2010 Nov 01
0
[LLVMdev] Symbol table for complex data structure
> The symbol table (in an AST, I assume?) deals with *symbols*. Assuming
> your complex datatype is called a "struct" for simplicity's sake, your
> symbol table would normally just store the struct's name, along with its
> AST node.
Actually, I don't put it along with the AST. It's a separate class in
separate module, should it be integrated?
Hmm... storing
2010 Nov 01
1
[LLVMdev] Symbol table for complex data structure
Hi,
As far as encapsulation is concerned, that's your decision (and sticking
the Symtab in a separate class is a good idea). I was more checking that
this symbol analysis is being done *on* your AST - so at the AST phase
of compilation.
James
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of leledumbo
>
2010 Nov 01
0
[LLVMdev] Symbol table for complex data structure
Maybe this is not LLVM specific, but more or less related. The language I'm
implementing allows the programmer to define complex data structure like
Pascal records. How am I suppose to design the symbol table? What should be
recorded there? Just the type name or each of the record element must be
stored?
--
View this message in context:
2010 Oct 20
1
[LLVMdev] Re : How to assign a constant to a register?
leledumbo,
from what you say, I assume you have some kind of representation (AST or a
lower-level intermediate representation) from which you generate LLVM assembly.
Is this representation in SSA form?
If it is, you might want to do a "copy propagation" transformation that replaces
the uses of all variables that are assigned a constant value by their
definitions.
Example:
x = 5
y =
2010 Oct 20
3
[LLVMdev] How to assign a constant to a register?
On 20/10/10 11:37, leledumbo wrote:
>
>> Why not just use ConstantInt::get() when you want the number 5?
>
> Because I'm not using LLVM libraries, I'm generating LLVM assembly myself.
In that case, why not output '5' when you want 5?
Ciao,
Duncan.
2013 Sep 10
1
[LLVMdev] function creation question
I have an AST, and I walk it to generate llvm-IR. For function definitions,
I need to be able to generate functions :
vector<datatypes> foo (param_list)
i.e. my return value is a vector of different datatype.s, similar to the
param list.
My question is, what do i put my elelment type in the vector? It can be a
vector of any of the element types.. i.e. the first value can be a float,
the
2005 Oct 24
2
[LLVMdev] [patch] Fix problems with build LLVM using gcc 4.1.0 (gcc CVS mainline)
Hi!
I have some problems with build current CVS version LLVM using GCC 4.1.0
(GCC CVS mainline version).
1) Build terminate with error:
llvm[3]: Compiling SparcV8CodeEmitter.cpp for Debug build
/usr/home/wanderer/pkg/build/llvm/obj/lib/Target/SparcV8/SparcV8GenCodeEmitter.inc:11:
error: definition of 'unsigned int
2011 Jun 10
2
Sorting Data Frame Without Loop
Hello all!
I am currently trying to sort a data frame in a particular way, but I am having some difficulties with this. Specifically I want to sort the below dataset in such a way that there is only one line per ProteinID and if there are multiple GeneID or GeneName entries for a single proteinID, that they be concatenated with a comma separating them. The way I have done it earlier worked fine
2010 Dec 21
2
[LLVMdev] complex numbers with LLVM
Hi,
I'm working on a project to generate native code for a domain specific
langauge where the user defines functions in the complex plane. This
implies that I need to support complex numbers as a datatype with
LLVM. Its fairly straightforward to create a struct of two floats (or
doubles, etc.) and do the simple operations like add, subtract,
multiply, divide, etc.
However, things get
2012 Dec 12
2
[LLVMdev] donot support uint datatype?
hi guys,
i use clang to compile a program with datatype uint, but i get errors saying
" use of undeclared identifier 'uint'; did you mean 'int'? ".
it really doesn't support it? if true, how can i add a datatype?
--
View this message in context: http://llvm.1065342.n5.nabble.com/donot-support-uint-datatype-tp52523.html
Sent from the LLVM - Dev mailing list archive
2010 Jan 10
1
xmlToDataFrame#Help!!!#follow-up
Dieter Menne pointed out that the (small) xml attachment didn't make it.
Here is an in-line version (see end of message). Let's hope it works
this time.
I'm struggling with interpreting XML files created by ADODB as
data.frames and I'm looking for advice.
Note:
This xlm contains a result set which comes from a rectangular data
array. I've been trying to play with
2007 Jun 15
2
Why does db:schema:dump change float to double ?
I have tables with double as their field''s datatype. When I ran
db:schema:dump, Rails changed all of these double to float.
I would like to know why, and if there is anyway I could preserve the
datatype.
Thanks a lot,
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2012 Jan 09
2
[LLVMdev] libcalls for shifts
>> Yes, well, i64 is a legal type, that's how it is. However, i64s are
>> always stored in two 32-bit registers and in some cases need complicated
>> instruction patterns for easy things (such as add, sub and so on) that
>> basically simulate the i64 behaviour with a sequence of i32
>> instructions.
> I think you're misunderstanding what it means for a type
2015 Aug 30
4
Fuzzing complex programs
I have a project I want to do based on Libfuzzer. Is there a separate
list for it or should I bring up any ideas for it here?
What I have in mind is to fuzz Postgres. Trying to fuzz the SQL
interpreter in general
is not very productive because traditional fuzzers try to execute the
entire program repeatedly and it has a fairly high startup and
shutdown cost. Also the instrumentation-guided
2013 Nov 11
4
[Bug 872] New: extra symbols in console output
https://bugzilla.netfilter.org/show_bug.cgi?id=872
Summary: extra symbols in console output
Product: nftables
Version: unspecified
Platform: x86_64
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: nft
AssignedTo: pablo at netfilter.org
ReportedBy: loki at lokis-chaos.de
2010 Oct 20
3
[LLVMdev] Re : How to assign a constant to a register?
Hi,
If x is a local variable, it will be stored on the stack. So you need an
alloca for it:
%x = alloca i8 ; <i8*>
Then you can just perform a store:
Store i8* %x, i8 0
Cheers,
James
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of leledumbo
> Sent: 20 October 2010 14:39
> To: llvmdev at
2011 Dec 01
2
HDF5 compound data types and h5r/hdf5 R packages
Hi there,
I have a Java process that writes HDF5 files with the following
approximate structure:
group "xxx" {
group "yyy" {
dataset {}
dataset {}
}
group "zzz" {
dataset {}
dataset {}
}
}
where dataset is a rank one dataspace having a compound datatype defined as:
H5T_UNIX_TIME, float, float, float, float
I
2017 Nov 01
2
Memory address of character datatype
Hi,
?
To get the memory address of where the value of variable "x" (of datatype "numeric") is stored one does the following in R (in 32 bit):
?
??? ? library(pryr)
? ?? ?x <- 1024
?? ?? addr <- as.numeric(address(x)) +?24?? ?# 24 is needed to jump the variable info and point to the data itself (i.e. 1024)
?
The question now is what is the value of the jump?so that one
2009 Sep 05
1
Convert dataframe to array of records
I would like to convert a dataframe to an array of lists, one for every
record. A natural choide is apply as.list to the rows. However, as it seems,
as.list() automatically converts all list elements to the same datatype. Eg:
myData <- data.frame(a="foo",b=as.logical(rbinom(10,1,.5)));
apply(myData,1,as.list);
In this output, all boolean values have been converted to character
2012 May 07
2
Compile Error
Hi Rich,
A compiling error occurs here,
File "../ocaml/guestfs.ml", line 1, characters 0-1:
Error: The implementation ../ocaml/guestfs.ml
does not match the interface ../ocaml/guestfs.cmi:
Values do not match:
external mkfs_btrfs :
t ->
?allocstart:int64 ->
?bytecount:int64 ->
?datatype:string ->