Displaying 20 results from an estimated 11931 matches for "align".
2007 Apr 01
4
[LLVMdev] PR400 - alignment for LD/ST
On Sun, 1 Apr 2007, Christopher Lamb wrote:
> Also I wanted to clear something up about the meaning of the alignment
> attribute. My thinking is that this indicates over/under alignment with
> respect to natural alignment for the type. This is to say in the Load/Store
> instruction classes the default alignment value will be zero, meaning natural
> alignment for the given type. If the alignmen...
2015 May 11
2
[LLVMdev] How to Store variable allocation in Registers
...anted.
I found "-mem2reg" as a better alternative. But Problem is even though the
resulting Intermediate file( .ll ) is
good...,the final assembly file( .s) file is making a lot of DCE.
Im Posting an example :
*Original Intermediate file :*
define void @main() #0 {
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
store i32 2, i32* %a, align 4
store i32 3, i32* %b, align 4
store i32 4, i32* %c, align 4
%1 = load i32* %a, align 4
%2 = add nsw i32 %1, 10
store i32 %2, i32* %a, align 4
%3 = load i32* %a, align 4
%4 = load i32* %b, align 4...
2015 Mar 03
2
[LLVMdev] Need a clue to improve the optimization of some C code
...0_4:
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq *8(%rcx)
movq %rax, %rbx
LBB0_5:
~~~
This is the IR code, which produces above:
~~~
; Function Attrs: inlinehint nounwind
define internal %struct._foo* @call(%struct._foo* %foo, i8* %key, i8* %value) #2 {
%1 = alloca %struct._foo*, align 8
%2 = alloca %struct._foo*, align 8
%3 = alloca i8*, align 8
%4 = alloca i8*, align 8
%dispatch = alloca %struct._dispatch*, align 8
%table = alloca %struct._table*, align 8
%entrys = alloca %struct._entry*, align 8
%entry = alloca %struct._entry*, align 8
%offset = alloca i64, ali...
2018 Mar 06
0
Sieve filter doesn't respect mailbox separator
...l:lang="en" lang="en"><head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
</head>
<body>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">On 2 Mar 2018 at 18:10, Konstantinos Tsakiltzidis wrote:</span></font></div>
<div align="left"><font face="Arial" size="2"...
2013 Oct 28
2
[LLVMdev] loop vectorizer says Bad stride
...* noalias %arg4) {
entrypoint:
br label %L0
L0: ; preds = %L0, %entrypoint
%0 = phi i32 [ %16, %L0 ], [ %arg0, %entrypoint ]
%1 = add nsw i32 %0, 256
%2 = sext i32 %0 to i64
%3 = getelementptr float* %arg3, i64 %2
%4 = load float* %3, align 4
%5 = sext i32 %1 to i64
%6 = getelementptr float* %arg3, i64 %5
%7 = load float* %6, align 4
%8 = getelementptr float* %arg4, i64 %2
%9 = load float* %8, align 4
%10 = getelementptr float* %arg4, i64 %5
%11 = load float* %10, align 4
%12 = fadd float %11, %7
%13 = fadd...
2007 Nov 07
7
[LLVMdev] RFC: llvm-convert.cpp Patch
Hi all,
This patch is to fix a problem on PPC64 where an unaligned memcpy is
generated. The testcase is this:
$ cat testcase.c
void Qux() {
char Bar[11] = {0};
}
What happens is that we produce LLVM code like this:
call void @llvm.memcpy.i64( i8* %event_list2, i8* getelementptr ([11
x i8]* @C.103.30698, i32 0, i32 0), i64 11, i32 8 )
Notice that it has an...
2016 Feb 09
2
Modified LLVM IR
Hi,
I want to edit LLVM generated IR file, like as given below,
Original LLVM IR file,
@.str2 = private unnamed_addr constant [17 x i8] c"\0AI am in
one_11\0A\00", align 1
; Function Attrs: nounwind
define i32 @one_1(i32 %ivar1, i32 %ivar2) #0 {
entry:
%ivar1.addr = alloca i32, align 4
%ivar2.addr = alloca i32, align 4
%isum = alloca i32, align 4
store i32 %ivar1, i32* %ivar1.addr, align 4
store i32 %ivar2, i32* %ivar2.addr, align 4
store i32 0, i32* %...
2007 Apr 02
2
[LLVMdev] PR400 - alignment for LD/ST
On Mon, 2 Apr 2007, Christopher Lamb wrote:
> Here's a related question. It seems that there might be a benefit in knowing
> about two alignment values for a load/store. The alignment of the load/store
> itself, but potentially also the alignment of the base pointer used for the
> load/store. Having an alignment attribute on pointer types would solve both
> these issues, but having a single alignment attribute on loads/store...
2013 Nov 11
2
[LLVMdev] What's the Alias Analysis does clang use ?
...each argument has attribute 'noalias' in LLVM IR. I plan to use
basicaa and licm to hoist all load/store of x/y/z and res to ahead of loop.
$ opt -basicaa -licm -print-alias-sets myalias.bc -o myalias.opt.bc
-stats -debug-only=licm
LICM hoisting to entry: %1 = load float** %v0.addr, align 8
LICM hoisting to entry: %arrayidx = getelementptr inbounds float* %0, i64
1
LICM hoisting to entry: %3 = load float** %v1.addr, align 8
LICM hoisting to entry: %arrayidx1 = getelementptr inbounds float* %1,
i64 1
LICM hoisting to entry: %5 = load float** %v2.addr, align 8
LICM hoisting to...
2020 Apr 17
1
Any advice for installing Samba as an AD server on Raspbian Buster with BIND9 and ISC DHCP?
...l:lang="en" lang="en"><head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
</head>
<body>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">I've taken the good suggestions and made some progress getting a bind-dhcp-samba server
running on the Pi.</span></font></div>
<div align="left"...
2011 Feb 14
1
[LLVMdev] broken alignment in stack(caused by bug in SelectionDAGBuilder) causes invalid schedules with r125471 and newer
The following problems happens with architectures, where stack alignment is smaller than the biggest preferred alignment for any data type
SP pointer may point anywhere with alignment of stack alignment (4 in our case)
SelectionDAGBuilder however calls CreateStackObject with preferred alignment is given data type(8 in our problemaric case. The ABI alignment for t...
2018 Mar 14
3
Sieve not working.
...l:lang="en" lang="en"><head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
</head>
<body>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">Hi there.</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"&...
2013 Oct 28
0
[LLVMdev] loop vectorizer says Bad stride
...t:
> br label %L0
>
> L0: ; preds = %L0, %entrypoint
> %0 = phi i32 [ %16, %L0 ], [ %arg0, %entrypoint ]
> %1 = add nsw i32 %0, 256
> %2 = sext i32 %0 to i64
> %3 = getelementptr float* %arg3, i64 %2
> %4 = load float* %3, align 4
> %5 = sext i32 %1 to i64
> %6 = getelementptr float* %arg3, i64 %5
> %7 = load float* %6, align 4
> %8 = getelementptr float* %arg4, i64 %2
> %9 = load float* %8, align 4
> %10 = getelementptr float* %arg4, i64 %5
> %11 = load float* %10, align 4
> %12 = fadd floa...
2013 Nov 12
0
[LLVMdev] What's the Alias Analysis does clang use ?
Hi,
Your problem is that the function arguments, which are makes as noalias, are not being directly used as the base objects of the array accesses:
> %v0.addr = alloca float*, align 8
> %v1.addr = alloca float*, align 8
> %v2.addr = alloca float*, align 8
> %t.addr = alloca float*, align 8
...
> store float* %v0, float** %v0.addr, align 8
> store float* %v1, float** %v1.addr, align 8
> store float* %v2, float** %v2.addr, align 8
> store float* %t, float**...
2013 Feb 14
1
[LLVMdev] LiveIntervals analysis problem
...16 -16708, i16 16409], [10 x i16] [i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 -25536, i16 16396], [10 x i16] [i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 -14336, i16 16389], [10 x i16] [i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 -24576, i16 16386]], align 2
@eone = internal global [10 x i16] [i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 -32768, i16 16383], align 2
@ezero = internal global [10 x i16] zeroinitializer, align 2
@nan113 = internal unnamed_addr constant [8 x i16] [i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 -32768, i16 32...
2007 Nov 07
0
[LLVMdev] RFC: llvm-convert.cpp Patch
On Nov 6, 2007, at 5:45 PM, Bill Wendling wrote:
> Hi all,
>
> This patch is to fix a problem on PPC64 where an unaligned memcpy is
> generated. The testcase is this:
>
> $ cat testcase.c
> void Qux() {
> char Bar[11] = {0};
> }
>
> What happens is that we produce LLVM code like this:
>
> call void @llvm.memcpy.i64( i8* %event_list2, i8* getelementptr ([11
> x i8]* @C.103.30698, i3...
2007 Apr 02
0
[LLVMdev] PR400 - alignment for LD/ST
On Apr 1, 2007, at 3:11 AM, Chris Lattner wrote:
> On Sun, 1 Apr 2007, Christopher Lamb wrote:
>> Also I wanted to clear something up about the meaning of the
>> alignment
>> attribute. My thinking is that this indicates over/under alignment
>> with
>> respect to natural alignment for the type. This is to say in the
>> Load/Store
>> instruction classes the default alignment value will be zero,
>> meaning natural
>>...
2012 Oct 28
2
[LLVMdev] Annotating known pointer alignment
...;> #include <stdint.h>
>> uint64_t foo(uint64_t *bar) {
>> *bar = 42;
>> return (uint64_t)bar & 3;
>> }
>>
>> Which is compiled to
>> define i64 @foo(i64* %bar) nounwind uwtable ssp {
>> store i64 42, i64* %bar, align 8
>> %0 = ptrtoint i64* %bar to i64
>> %and = and i64 %0, 3
>> ret i64 %and
>> }
>>
>> 1) How can clang deduce the alignment on the store?
>
> by consulting the C standard :)
Ah, good to know. ยง6.3.2.3 (7) even states that casting alone l...
2016 Feb 10
2
Modified LLVM IR
...llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi,
>>
>> I want to edit LLVM generated IR file, like as given below,
>>
>> Original LLVM IR file,
>> @.str2 = private unnamed_addr constant [17 x i8] c"\0AI am in
>> one_11\0A\00", align 1
>>
>> ; Function Attrs: nounwind
>> define i32 @one_1(i32 %ivar1, i32 %ivar2) #0 {
>> entry:
>> %ivar1.addr = alloca i32, align 4
>> %ivar2.addr = alloca i32, align 4
>> %isum = alloca i32, align 4
>> store i32 %ivar1, i32* %ivar1.addr, alig...
2018 Mar 02
2
Sieve filter doesn't respect mailbox separator
namespace separator is '.',
this sieve script incorrectly tries to put the mail inside a mailbox
rather that beside it, for example if the mailbox is named
'example', the mail will be put in the path 'example/.Spam'
instead of 'example.Spam'
require ["fileinto"];
if header :contains "X-Spam" "yes" {
? fileinto "Spam";
}
#