Displaying 2 results from an estimated 2 matches for "int_cnot".
Did you mean:
init_not
2016 Jul 26
2
Help wanted: Overloading an Intinsic
...d two types, abit (which is mapped, in Intrinsics.td, to i128)
and qbit (accordingly mapped to i16). I would like my intrinsic function,
CNOT(x,y), to accept either an abit or a qbit for each argument, so I
overload with iAny and llvm_anyint_ty, as seemed to be the method for other
intrinsics:
def int_CNOT: Intrinsic<[], [llvm_anyint_ty,
llvm_anyint_ty],[],["llvm.CNOT"]>;
My llvm/clang directory builds successfully, but I get an error on getType
from clang, which I believe is rooted in my llvm code. My question is
simply, are there any additional steps to overloading an intrinsic? I...
2016 Jul 28
0
Help wanted: Overloading an Intinsic
...s, abit (which is mapped, in Intrinsics.td, to i128) and qbit (accordingly mapped to i16). I would like my intrinsic function, CNOT(x,y), to accept either an abit or a qbit for each argument, so I overload with iAny and llvm_anyint_ty, as seemed to be the method for other intrinsics:
>
> def int_CNOT: Intrinsic<[], [llvm_anyint_ty, llvm_anyint_ty],[],["llvm.CNOT"]>;
>
> My llvm/clang directory builds successfully, but I get an error on getType from clang, which I believe is rooted in my llvm code. My question is simply, are there any additional steps to overloading an in...