similar to: [LLVMdev] RFA: Alignment of Strings

Displaying 20 results from an estimated 300 matches similar to: "[LLVMdev] RFA: Alignment of Strings"

2009 Jan 09
0
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
Hi Evan, > LValue LV = EmitLV(lhs); > bool isVolatile = TREE_THIS_VOLATILE(lhs); > unsigned Alignment = expr_align(exp) / 8 > > It's using the alignment of the expression, rather than the memory > object of LValue. can't you just use expr_align(lhs) instead? > The patch saves the alignment of the memory object in LValue returned > by EmitLV().
2009 Jan 09
2
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
Hi all, Please review this patch. It's fixing PR3232 comment #8. Function bar from 2008-03-24-BitFiled-And-Alloca.c compiles to: %struct.Key = type { { i32, i32 } } ... define i32 @bar(i64 %key_token2) nounwind { entry: %key_token2_addr = alloca i64 ; <i64*> [#uses=2] %retval = alloca i32 ; <i32*> [#uses=2] %iospec =
2007 Oct 26
2
[LLVMdev] RFC: llvm-convert.cpp Patch
Hi all, The patch below is to fix a problem with unaligned memcpys. This program: void Bork() { int Qux[33] = {0}; } will currently produce this LLVM code on PPC64: @C.0.937 = internal constant [33 x i8] zeroinitializer define void @Bork() { entry: %Qux = alloca [33 x i8] %Qux1 = bitcast [33 x i8]* %Qux to i8* call void @llvm.memcpy.i64( i8* %Qux1, i8* getelementptr ([33 x i8]*
2007 Feb 25
2
RFA and nsRFA
Dear Sir There are two packages of regional frequency analysis RFA and nsRFA. Are both give us same results if not then what you will suggest. I am confused about this. Please guid me in this regard AMINA -- AMINA SHAHZADI Department of Statistics GC University Lahore, Pakistan. Email: amnakhan493@gmail.com amna_989@hotmail.com amna_989@yahoo.com [[alternative HTML version deleted]]
2007 Feb 25
2
RFA
Dear Sir in the following example,is the vector lmom a l-moment ratios vector? What is meant by size = northCascades[,1]? And what are the values in c(0.0104,0.0399,0.0405)? Please help me I am unable to understand these from help manual. Best Regards AMINA data(northCascades) lmom <- c(1, 0.1103, 0.0279, 0.1366) kappaParam <- kappalmom(lmom) heterogeneity(500, 19, size =
2009 Jun 21
0
[PATCHv6 04/12] qemu/pci: check constant registers on load
Add "cmask" table of constant register masks: if a bit is not writeable and is set in cmask table, this bit is checked on load. An attempt to load an image that would change such a register causes load to fail. Use this table to make sure that load does not modify registers that guest can not change (directly or indirectly). Note: we can't just assume that read-only registers never
2009 Jun 21
0
[PATCHv6 04/12] qemu/pci: check constant registers on load
Add "cmask" table of constant register masks: if a bit is not writeable and is set in cmask table, this bit is checked on load. An attempt to load an image that would change such a register causes load to fail. Use this table to make sure that load does not modify registers that guest can not change (directly or indirectly). Note: we can't just assume that read-only registers never
2007 Aug 30
0
[LLVMdev] RFA: Problem with Exceptions
Duncan, > Hi Bill, is this a 64 bit machine? If so, did you make > any adjustments based on > http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-August/010489.html ? This is 32 bit machine. 64 bit will definitely won't work due to bunch of stuff unimplemented: dwarf builtins, stack layout description, etc. -- With best regards, Anton Korobeynikov. Faculty of Mathematics &
2007 Aug 30
0
[LLVMdev] RFA: Problem with Exceptions
Hi Bill, is this a 64 bit machine? If so, did you make any adjustments based on http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-August/010489.html ? Thanks, Duncan.
2007 Aug 31
0
[LLVMdev] RFA: Problem with Exceptions
Hi Bill, > I'm compiling this trivial program on Darwin: > > int main(int argc, char **argv) { > try { > throw argc; > } catch(int i) { > return i; > } > > return 0; > } > > However, it segfaults when I run it. I've attached the .s files > generated by LLVM and GCC, but it looks as if LLVM isn't generating a >
2007 Sep 03
0
[LLVMdev] RFA: Problem with Exceptions
Duncan, > I see a call to terminate in the llvm assembler. Where did that > come from? I compiled with llvm-gcc-4.0 and llvm-gcc-4.2 and > didn't see such a call. std::terminate() is called by __cxa_throw, if unwinding fails. I think the source of problem was my frame_to_args_offs patch. So, let's wait for retest :) -- With best regards, Anton Korobeynikov. Faculty of
2008 Nov 25
2
[LLVMdev] RFA: tree-nested.c
I'm getting a crash with some Objective-C code that involves "blocks". Basically, it gets to this "walk_all_functions" call and fails: lower_nested_functions (tree fndecl, bool skip_outermost_fndecl) { ... #ifdef ENABLE_LLVM walk_all_functions (construct_reverse_callgraph, root); propagate_chains (root); #endif ... } The construct_reverse_callgraph calls
2008 Nov 26
0
[LLVMdev] RFA: tree-nested.c
> What are the assumptions going into this "walk_all_functions" call? > Should the code have been placed into some nesting info slot or > something? Hi Bill, should I think about this or is it fixed already? D.
2009 Jan 04
0
[LLVMdev] RFA: TREE_READONLY in LLVM-GCC
On Jan 4, 2009, at 3:44 AM, Bill Wendling wrote: > Hi LLVM-GCC hackers! > > I have a global variable that I want to mark as "TREE_READONLY" so > that it will become a "constant" in LLVM IR. This is for the new > blocks-related stuff, but that's not necessarily important for this > question. In particular, I want to mark the "block_holder"
2009 Jan 05
2
[LLVMdev] RFA: TREE_READONLY in LLVM-GCC
Hi Chris, > I think this change is fine and should go into the normal apple GCC as > well. Setting TREE_READONLY means that it can go into the "constant" > section of the executable, go in ROM, etc. This is the same as the > llvm constant bit on globals. for this I think it has to be static as well as readonly. Ciao, Duncan.
2009 Jan 05
0
[LLVMdev] RFA: TREE_READONLY in LLVM-GCC
I did mark it as TREE_CONSTANT. Is that enough? -bw On Jan 5, 2009, at 2:03 AM, Duncan Sands <baldrick at free.fr> wrote: > Hi Chris, > >> I think this change is fine and should go into the normal apple GCC >> as >> well. Setting TREE_READONLY means that it can go into the "constant" >> section of the executable, go in ROM, etc. This is the same
2009 Jan 05
1
[LLVMdev] RFA: TREE_READONLY in LLVM-GCC
On Monday 05 January 2009 12:42:16 Bill Wendling wrote: > I did mark it as TREE_CONSTANT. Is that enough? No idea - if it works I guess it was enough :) I was actually thinking of TREE_STATIC: /* In a VAR_DECL, nonzero means allocate static storage. In a FUNCTION_DECL, nonzero if function has been defined. In a CONSTRUCTOR, nonzero means allocate static storage. ??? This is also
2009 May 08
3
[LLVMdev] RFA: flag_objc_abi on Non-Darwin Platforms?
Is the flag_objc_abi variable available on non-Darwin platforms in llvm-gcc? I want to use it in llvm-backend.cpp to conditionalize a test. But I don't want to break Linux, Ada, Fortran, etc. -bw
2009 May 08
0
[LLVMdev] RFA: flag_objc_abi on Non-Darwin Platforms?
On May 8, 2009, at 1:09 PM, Bill Wendling wrote: > Is the flag_objc_abi variable available on non-Darwin platforms in > llvm-gcc? I want to use it in llvm-backend.cpp to conditionalize a > test. But I don't want to break Linux, Ada, Fortran, etc. If not, you can define it in objc-stubs.c -Chris
2009 Jan 21
2
[LLVMdev] RFA: Constant String c"\000"
The Constants.cpp file returns a ConstantAggregateZero object when you pass it a c"\000" string. Here is the code: Constant *ConstantArray::get(const ArrayType *Ty, const std::vector<Constant*> &V) { // If this is an all-zero array, return a ConstantAggregateZero object if (!V.empty()) { Constant *C = V[0]; if (!C->isNullValue())