search for: toffoli

Displaying 6 results from an estimated 6 matches for "toffoli".

2013 Feb 13
1
[LLVMdev] c-like language implementation using llvm
...used. Am I missing something? > > If the type behaves like an i32 then use i32. For example, both signed > and unsigned int get lowered to i32. > >> That's a good point. However simple binary operations such as XOR are not >> the only ones I'll be using. I have the Toffoli Gate for example which takes >> in 3 operands: >> http://en.wikipedia.org/wiki/Toffoli_gate >> I guess I can use intrinsics for these things? If I do, can I leave its >> behavior undefined? I would like it to appear just with the name toffoli in >> the IR. > > J...
2013 Feb 04
2
[LLVMdev] c-like language implementation using llvm
...is > no NOT instruction; `NOT X` is represented as `XOR X, -1`. You > probably won't need to add an intrinsic unless you are doing something > _very_ exotic. > That's a good point. However simple binary operations such as XOR are not the only ones I'll be using. I have the Toffoli Gate for example which takes in 3 operands: http://en.wikipedia.org/wiki/Toffoli_gate I guess I can use intrinsics for these things? If I do, can I leave its behavior undefined? I would like it to appear just with the name toffoli in the IR. Thanks, Ali -------------- next part -------------- An H...
2013 Feb 04
0
[LLVMdev] c-like language implementation using llvm
...9;s what I meant by already used. Am I missing something? If the type behaves like an i32 then use i32. For example, both signed and unsigned int get lowered to i32. > That's a good point. However simple binary operations such as XOR are not > the only ones I'll be using. I have the Toffoli Gate for example which takes > in 3 operands: > http://en.wikipedia.org/wiki/Toffoli_gate > I guess I can use intrinsics for these things? If I do, can I leave its > behavior undefined? I would like it to appear just with the name toffoli in > the IR. Just create the equivalent IR f...
2013 Feb 04
0
[LLVMdev] c-like language implementation using llvm
> Can I just utilize the i1 type? Is the > i1 type already used for something, and thus might create a conflict? I think you are very confused. LLVM's types are meant to be used to represent *your* program :) They can't be "already used". > 2) Can I use LLVM's intrinsic functions for my gates, something like > @llvm.NOT(i1 %val)? Would the fact that the
2008 May 07
2
bug on compilation (PR#11395)
...compile with the command ./configure. But what appeared at the end was (after a bunch of other things): configure: error: --with-readline=yes (default) and headers/libs are not available What should I do? Hope you can help me. Sincerelly Daniel --------------------------------- Daniel Toffoli Ribeiro Laborat?rio de Evolu??o e Gen?tica Animal Universidade Federal do Amazonas www.evoamazon.net tel: ++55 (92) 36474233 --------------------------------- [[alternative HTML version deleted]]
2013 Feb 03
2
[LLVMdev] c-like language implementation using llvm
Hi, I have a project where I am creating a language which is very similar to C, but has some extensions. Among the most important are: 1) A new 1-bit data-type 2) Some gates: NOT, AND, etc.. that act on arrays of this 1-bit type. (Think like a hardware description language.) These are like external function calls, which don't have an implementation for now. I don't have a particular