similar to: [LLVMdev] Mapping of logical NOT in LLVM IR

Displaying 20 results from an estimated 60000 matches similar to: "[LLVMdev] Mapping of logical NOT in LLVM IR"

2010 Oct 19
0
[LLVMdev] How to assign a constant to a register?
> let me say that in general doing this is pointless. Due to SSA form, if %x is > set to 5 you can't set it to something else later. Thus everywhere that > you > use %x you might as well just directly use 5 there instead. My bad... I should've started thinking in SSA way all the time. I got it mixed with common assembly language. So I must hold the initial value until the
2020 Feb 27
2
[Bug 1409] New: nft manpage makes confusing reference to logical operators
https://bugzilla.netfilter.org/show_bug.cgi?id=1409 Bug ID: 1409 Summary: nft manpage makes confusing reference to logical operators Product: nftables Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 Component: nft
2010 Sep 29
2
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
Good morning. I don't understand relation between output.log and error.log. It seems all LLVM libraries are not found on linking opt.exe. Please show us logs with command lines with make VERBOSE=1 It would be better only then to touch a few files. (eg. lib/Transforms/Scalar/GVN.cpp) The warning of --export-dynamic might be harmless, and you may add the option --enable-auto-import IIRC
2014 Aug 11
0
diag(x, n) not preserving integer and logical x
Martin Maechler wrote: > diag(x) preserves the storage mode of x for 'complex' and > 'double' precision, but converts integer and logicals to double : Duncan Murdoch wrote: > I think the change to preserve integer makes sense, but preserving > logical does not. A diagonal matrix has zeros off the diagonal, and > they are not logical. Having diag() sometimes
2010 Oct 19
2
[LLVMdev] How to assign a constant to a register?
On Oct 18, 2010, at 9:22 PM, leledumbo wrote: > >> let me say that in general doing this is pointless. Due to SSA form, if %x > is >> set to 5 you can't set it to something else later. Thus everywhere that >> you >> use %x you might as well just directly use 5 there instead. > > My bad... I should've started thinking in SSA way all the time. I got
2017 Sep 22
0
[RFC] PT.2 Add IR level interprocedural outliner for code size.
> > --- Algorithmic differences with the Machine Outliner ---- > > There was a lot of confusion on how exactly the algorithm I am > proposing differs from what is available in the Machine Outliner. The > similarities of the two outliners lie in the usage of a string matching > algorithm and candidate pruning. The first step in the algorithm is to > basically do
2016 Dec 23
2
struct bitfield regression between 3.6 and 3.9 (using -O0)
Given that this is compiled with -O0, would there a way to skip the Optimization of the Type-legalized selection DAG? It's fine until it optimizes the Type-legalized selection DAG into the Optimized Type-legalized selection DAG. Phil On Thu, Dec 22, 2016 at 10:29 AM, Friedman, Eli <efriedma at codeaurora.org> wrote: > On 12/21/2016 4:45 PM, Phil Tomson via llvm-dev wrote: > >
2016 Dec 22
2
struct bitfield regression between 3.6 and 3.9 (using -O0)
Here's our testcase: #include <stdio.h> struct flags { unsigned frog: 1; unsigned foo : 1; unsigned bar : 1; unsigned bat : 1; unsigned baz : 1; unsigned bam : 1; }; int main() { struct flags flags; flags.bar = 1; flags.foo = 1; if (flags.foo == 1) { printf("Pass\n"); return 0; } else {
2016 Dec 22
0
struct bitfield regression between 3.6 and 3.9 (using -O0)
On 12/21/2016 4:45 PM, Phil Tomson via llvm-dev wrote: > Here's our testcase: > > #include <stdio.h> > > struct flags { > unsigned frog: 1; > unsigned foo : 1; > unsigned bar : 1; > unsigned bat : 1; > unsigned baz : 1; > unsigned bam : 1; > }; > > int main() { > struct flags flags; > flags.bar = 1; >
2010 Oct 21
0
[LLVMdev] Re : How to assign a constant to a register?
> If x is a local variable, it will be stored on the stack. So you need an > alloca for it: Aha, I remember this in Kaleidoscope tutorial. So, after the alloca %x can be modified freely (e.g. without adding suffix)? -- View this message in context: http://old.nabble.com/How-to-assign-a-constant-to-a-register--tp29987387p30016496.html Sent from the LLVM - Dev mailing list archive at
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
2015 Apr 11
2
[LLVMdev] How doesn't llvm generate IR for logical negate operation
How can I generate LLVM IR for both logical NEG (!)? For example, if I have Int32Ty a, For the bitwise NEG(~): c = ~a ; I can use the following API from LLVM: BinaryOperator *neg = BinaryOperator::CreateNeg(nbits, "bitwiseNEG", insertBefore); How, if I want to generate logical NEG: c = !a; what should I do for this? Thanks -------------- next part -------------- An HTML
2010 Sep 29
0
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
reverting doesn't help. Here are the logs: http://old.nabble.com/file/p29834726/output.log output.log http://old.nabble.com/file/p29834726/error.log error.log which mingw gcc + binutils versions are known to work (or better, the one that you guys use)? -- View this message in context: http://old.nabble.com/Compiling-LLVM-2.7-with-MinGW-GCC-4.5.0-tp29810752p29834726.html Sent from the LLVM -
2010 Sep 30
0
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
Attached is a result of configure and make VERBOSE=1: http://old.nabble.com/file/p29846487/output.log output.log http://old.nabble.com/file/p29846487/error.log error.log -- View this message in context: http://old.nabble.com/Compiling-LLVM-2.7-with-MinGW-GCC-4.5.0-tp29810752p29846487.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Sep 30
1
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
Good evening. Thank you. > configure: running /bin/sh ../../../projects/sample/configure --prefix=c:/llvm '--enable-optimized' '--enable-shared' '--enable-targets=host,x86,cpp' 'CFLAGS=-s -O4' 'CXXFLAGS=-s -O4 -Wl,--enable-auto-import' 'LDFLAGS=-s -O4' --cache-file=/dev/null --srcdir=../../../projects/sample --enable-shared/DLL was not
2015 Dec 24
0
[PATCH v2] btrfs: Fix logical to physical block address mapping
The current btrfs support did not handled multiple stripes stored in chunk items, hence skipping the physical addresses that were needed to do the mapping. Besides, the chunk tree may contain DEV_ITEM keys which store information on all of the underlying block devices, so we must skip them instead of finishing lookup. The bug was reproduced with btrfs-progs v4.2.2. Cc: Gene Cumm <gene.cumm
2015 Dec 27
0
[PATCH v3] btrfs: Fix logical to physical block address mapping
The current btrfs support did not handled multiple stripes stored in chunk items, hence skipping the physical addresses that were needed to do the mapping. Besides, the chunk tree may contain DEV_ITEM keys which store information on all of the underlying block devices, so we must skip them instead of finishing lookup. The bug was reproduced with btrfs-progs v4.2.2. Cc: Gene Cumm <gene.cumm
2011 May 11
3
[LLVMdev] [LLVMDev] Add not instruction to PTX backend
Hi, Dan I add "not" instruction support in PTXInstrInfo.td as you suggested before. multiclass PTX_LOGIC_2OP<string opcstr,PatFrag opnode> { ... } Now I am trying to write test case for logic and shift operations. But I have a trouble in mapping LLVM IR to PTX IR for "not" instruction. The test case I wrote is, define ptx_device i16 @t4_u16(i16 %x) { ; CHECK:
2015 Apr 11
2
[LLVMdev] How doesn't llvm generate IR for logical negate operation
Thanks, Bruce. So, what is the easiest way to check if there is any bit set to 1 in a <N x i1> vector type? I used bitcast instruction to cast it into "iN" first and them compare iN to 0. Do you have a better way to do it? Thanks again. On Fri, Apr 10, 2015 at 5:22 PM, Bruce Hoult <bruce at hoult.org> wrote: > LLVM doesn't have a "logical neg" (or
2010 Sep 27
2
[LLVMdev] Bls: Compiling LLVM 2.7 with MinGW GCC 4.5.0
> Make sure you're using the correct perl - that one which comes with msys DTK I'm using msys perl for msys 1.0.11. Maybe I should revert back to msys 1.0.10? ________________________________ Dari: Anton Korobeynikov <anton at korobeynikov.info> Kepada: leledumbo <leledumbo_cool at yahoo.co.id> Cc: llvmdev at cs.uiuc.edu Terkirim: Sen, 27 September, 2010 13:45:47 Judul: