Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] StructLayout"
2009 Sep 23
0
[LLVMdev] StructLayout
I have a question. If the size of long is 8 on your x64 platform.
Because the size of long is so different on different platform, sad it
is.
2009/9/23, David Greene <dag at cray.com>:
> How are bitfields handled in StructLayout? In LLVM 2.5 the
> struct is unambiguously size by:
>
> StructSize += TD.getTypePaddedSize(Ty); // Consume space for this data
>
> In LLVM 2.6
2010 Nov 11
1
[LLVMdev] named types with self-references
On Thu, Nov 11, 2010 at 12:11 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Nov 11, 2010, at 8:45 AM, Jianzhou Zhao wrote:
>
>> Hello,
>>
>> Can I define a named type ? %rt = {%rt}
>> llvm-as can parse this definition without errors.
>>
>> JIT executes '%0 = alloca %rt' as allocating a memory with size 0.
>> Because the
2010 Nov 11
2
[LLVMdev] named types with self-references
Hello,
Can I define a named type ? %rt = {%rt}
llvm-as can parse this definition without errors.
JIT executes '%0 = alloca %rt' as allocating a memory with size 0.
Because the llvm::TargetData::getTypeAllocSize accually returns 0 in
this case. The function that calculates %rt's size is by the
TargetData::getStructLayout, which calculates the a layout of %rt. It
can only returns 0
2010 Nov 11
0
[LLVMdev] named types with self-references
On Nov 11, 2010, at 8:45 AM, Jianzhou Zhao wrote:
> Hello,
>
> Can I define a named type ? %rt = {%rt}
> llvm-as can parse this definition without errors.
>
> JIT executes '%0 = alloca %rt' as allocating a memory with size 0.
> Because the llvm::TargetData::getTypeAllocSize accually returns 0 in
> this case. The function that calculates %rt's size is by the
2013 Feb 09
1
Troubleshooting underidentification issues in structural equation modelling (SEM)
Hi all, hope someone can help me out with this.
Background Introduction
I have a data set consisting of data collected from a questionnaire that I
wish to validate. I have chosen to use confirmatory factor analysis to
analyse this data set.
Instrument
The instrument consists of 11 subscales. There is a total of 68 items in
the 11 subscales. Each item is scored on an integer scale between 1 to 4.
2009 Jun 18
1
[LLVMdev] Explicitly Freeing Allocas
I went ahead and implemented the allocation based on the maximum size of all
structs seen so far... The problem is, the TargetData object from
ExecutionEngine gives me a size of 12 for a struct containing a pointer and
an i64 (on a 32-bit machine). However, the generated code seems to assume an
alignment of 8, and tries to read the i64 value at offset 8, which obviously
reads an invalid value.
2009 Feb 19
2
[LLVMdev] please review this fix for PR3510
Please review this patch for PR3510 (and <rdar://problem/6564697>).
The bug is a failure to handle a "hole" inside an initialized
structure, where the hole may be induced by a designated initializer
or by alignment:
http://llvm.org/bugs/show_bug.cgi?id=3510
The original code was greatly simplified by using FieldNo to index the
LLVM fields and the initializer in
2007 Nov 23
1
[LLVMdev] Will any pass change simple return branch into select/return pair?
Hi,
Can any llvm pass change simple return branch into select/return pair?
For example:
define i10 @mod_N(i10 zeroext %a) zeroext {
entry:
%tmp2 = icmp ugt i10 %a, -400 ; <i1> [#uses=1]
br i1 %tmp2, label %cond_true, label %return
cond_true: ; preds = %entry
%tmp5 = add i10 %a, 400 ; <i10> [#uses=1]
ret i10 %tmp5
return: ; preds = %entry
ret
2012 Mar 22
1
[LLVMdev] StructLayout getSizeInBits()
LLVMers,
I have a const StructType *StTy where I call
TargetData->getStructLayout(const_cast<StructType*>(StTy))->getSizeInBits()
but it continues to return 64 regardless of the actual size of the struct?
I want the size of the structure in bits, including alignment padding for
offset calculations, is this not the right function call?
Thanks.
-------------- next part
2004 May 17
3
Accessing data
Hello,
I would like to access my data frame without one variable.
E.g.:
> colnames(x)
[1] "Besch" "Ang.m" "Arb.m" "i10" "Umsatz" "arbstd"
I can try x[,-1], but this variable must be called by it??s name.
x[,-"Besch"]
x[,!"Besch"]
attach(x)
x[-Besch]
...
...
does not work.
I could not found a solution of
2013 Jan 20
1
[LLVMdev] Sizeof a type?
On Jan 20, 2013, at 3:21 , Duncan Sands <baldrick at free.fr> wrote:
> if you have DataLayout available, use the getTypeAllocSize method. If you don't
> have information about the target then you can use ConstantExpr::getSizeOf. The
> advantage of DataLayout is that it returns a number (eg: 8) while getSizeOf
> returns a mysterious expression (the optimizers will simplify
2013 Jan 20
5
[LLVMdev] Sizeof a type?
Is there a way to get the sizeof a type? Say I've created a struct type without any explicit attribtues, and I want to call malloc() to allocate space for it. Can I get the size as an llvm::Constant* (or other llvm::Value*) given an llvm::StructType* or other llvm::Type*?
TIA,
--
Rick
2009 Aug 20
2
Insert rows in between dataframes
Hi all,
Can anyone suggest me how to insert rows in between data frames and also
keep the ordering of row numbers correct?
Estimate Std. Error t
value Pr(>|t|)
recmeanC2 9.275880e-17 6.322780e-17 1.467057e+00
0.14349903
recmeanC3 1.283534e-17 2.080644e-17 6.168929e-01
0.53781390
2013 Jan 20
0
[LLVMdev] Sizeof a type?
Hi Rick,
On 20/01/13 06:23, Rick Mann wrote:
> Is there a way to get the sizeof a type? Say I've created a struct type without any explicit attribtues, and I want to call malloc() to allocate space for it. Can I get the size as an llvm::Constant* (or other llvm::Value*) given an llvm::StructType* or other llvm::Type*?
if you have DataLayout available, use the getTypeAllocSize method. If
2011 Feb 15
3
[LLVMdev] Structure Types and ABI sizes
Hi all,
We're hitting some walls here when generating the correct structure
layout for specific C++ ABI requirements, and I was wondering how much
StructLayout could help.
For instance, the ABI has some complicated rules on the size of
derived classes
(http://www.codesourcery.com/public/cxx-abi/abi.html#class-types) and
LLVM struct type cannot reflect that in full.
Example:
// CHECK:
2011 Jan 28
1
Ubuntu?
Hello,
What is your opinion on Ubuntu. I´ve encountered a couple hurdles here.
The Keyboard: I have to hit the quote button twice to get a quote or
apostrophe! I tried adjusting keyboard settings but nothing changed. And
the RKWard GUI won´t recognize quotes from my machines even though they show
up on the RKWard text editor. On the other hand, RKWard will quoted material
whien I copy and
2009 Aug 17
1
R : how does %in% operator work?
*Problem-1*
CASE-I---------(works fine)
> var1<-"tom"
> var1
[1"tom"
> var1<-as.character(var1)
> var1
[1] "tom"
> var2<-c("tom","harry","kate")
> logc<-(var1 %in% var2)
> logc
[1] TRUE
> typeof(var1)
[1] "character"
> typeof(var2)
[1] "character"
2016 Dec 19
1
Aw: rsync show files changed during transfer - how?
At 17:00 19.12.2016, devzero at web.de wrote:
>>http://olstrans.sourceforge.net/release/OLS2000-rsync/OLS2000-rsync.html
>
><snipp> But the filename twice can happen under other circumstances; if you've seen this happen, it's almost certainly because the file changed during transfer. Rsync does no locking. Which means that: if you are modifying a file while it's
2009 Mar 02
6
[LLVMdev] Please review the 2.5 release notes
Hi All,
Please review the 2.5 release notes here: http://llvm.org/docs/ReleaseNotes.html
Let me know if you have any additions, improvements, or see any
oversights. If you have commit access, please just directly change
the document.
The release is planned to go out in about 24 hours from now!
Thanks!
-Chris
2009 Oct 20
2
[LLVMdev] Dereference PointerType?
Daniel Waterworth <da.waterworth at googlemail.com> writes:
[snip]
Use the getElementType method of PointerType.
>> size_t size;
>> if (isa<PointerType>(allocated_type)) {
>> size = sizeof(void*) * 8;
>> } else {
>> size = allocated_type->getPrimitiveSizeInBits();
>> }
>> // size now equals the size (in bits) of the type allocated