Displaying 9 results from an estimated 9 matches for "is_same".
2015 Apr 18
2
[LLVMdev] how can I create an SSE instrinsics sqrt?
Thanks, Shahid. It is fixed now.
On Fri, Apr 17, 2015 at 8:50 PM, Shahid, Asghar-ahmad <
Asghar-ahmad.Shahid at amd.com> wrote:
> Hi zhi,
>
>
>
> You have to also pass the value type to getDecalaration() API such as
>
>
>
> Value* sqrtv = Intrinsic::getDeclaration(M, Intrinsic::x86_sse2_sqrt_pd,
> v->getType());
>
>
>
> Regards,
>
>
2012 Nov 29
2
[LLVMdev] [cfe-dev] UB in TypeLoc casting
Moving to LLVM dev to discuss the possibility of extending the cast
infrastructure to handle this.
On Tue, Nov 20, 2012 at 5:51 PM, John McCall <rjmccall at apple.com> wrote:
> On Nov 18, 2012, at 5:05 PM, David Blaikie <dblaikie at gmail.com> wrote:
>> TypeLoc casting looks bogus.
>>
>> TypeLoc derived types return true from classof when the dynamic type
>>
2012 Nov 30
0
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...====
--- include/llvm/Support/Casting.h (revision 168949)
+++ include/llvm/Support/Casting.h (working copy)
@@ -203,13 +203,27 @@
//
// cast<Instruction>(myVal)->getParent()
//
-template <class X, class Y>
+template <class X, class Y, class S = typename std::enable_if<!std::is_same<Y, typename simplify_type<Y>::SimpleType>::value>::type>
inline typename cast_retty<X, Y>::ret_type cast(const Y &Val) {
assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
return cast_convert_val<X, Y,...
2013 Aug 22
2
[LLVMdev] Crash in CreateShl() method
...(ConstantInt::get(type,1),AI);
Value * Vresult = (Value*)ST;
Vresult = builderWait.CreateShl(Vresult, 1);
I need to make one bit shift left to the variable stored in the second step
I've got crash in this step
opt: /home/xx/llvm2/llvm/include/llvm/Support/Casting.h:237: typename
enable_if<is_same<Y, typename simplify_type<Y>::SimpleType>, typename
cast_retty<X, Y
*>::ret_type>::type llvm::cast(Y *) [X = llvm::IntegerType, Y =
llvm::Type]: Assertion
`isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
How could this cras...
2007 Jul 04
1
[LLVMdev] API design (and Boost and tr1)
...sertBefore) {
init(Func, ArgBegin, ArgEnd, Name,
typename std::iterator_traits<InputIterator>::iterator_category());
}
init() is the function that actually does the checking of the iterators for
an empty range.
This required that I pull in is_base_and_derived, remove_pointer, is_same and
remove_cv from Boost. boost::is_class already exists in Support/type_traits.h
so there is precedent for this.
Now, something is not quite right with the code as the overload doesn't seem
to get removed when passed an AllocaInst *. I'm working on figuring out why.
I wrote a small test...
2017 Jan 16
4
[RFC 0/2] Propose a new pointer trait.
Hi,
I'm part of an engineering team doing research on persistent memory support and
we have stumbled upon an interesting problem. The issue is, we would like to be
able to use the standard library containers in a persistent memory context
(think NVDIMM-N). What I mean is that you allocate a container from said
memory, use it like you normally would. After the application terminates,
expectedly
2007 Jul 03
4
[LLVMdev] API design
On Monday 02 July 2007 16:26, Chris Lattner wrote:
> On Sun, 1 Jul 2007, Nick Lewycky wrote:
> > I've been running LLVM with _GLIBCXX_DEBUG (extra checks) turned on to
> > see what would happen, and it's been a complete disaster.
Well, that's a bit harsh, isn't it? It's finding bugs, just like it's
supposed to. :)
I believe I've started to run into
2013 Dec 16
3
[LLVMdev] Add call printf instructions problems
...t when I use the call_print.so to transform
the test .bc file like this:
opt -load /home/king/llvm/Release+Asserts/lib/call_print.so -call_print
<test_sum.bc> test_sum.call.bc -debug
It failed with such information:
/home/king/llvm/include/llvm/Support/Casting.h:237: typename
enable_if<is_same<Y, typename simplify_type<Y>::SimpleType>, typename
cast_retty<X, Y *>::ret_type>::type llvm::cast(Y *) [X = llvm::PointerType,
Y = llvm::Type]: Assertion `isa<X>(Val) && "cast<Ty>() argument of
incompatible type!"' failed.
Can anyone tell me...
2015 Dec 18
0
[ANNOUNCE] iptables 1.6.0 release
...ociate table configuration to handle via nft_init
nft: fix family operation lookup
nft: load only the tables of the current family
nft: refactoring parse operations for more genericity
xtables: bootstrap ARP compatibility layer for nftables
xtables: nft-arp: implements is_same op for ARP family
xtables: arp: add rule replacement support
xtables: arp: add delete operation
xtables: arp: zeroing chain counters
nft: arp: initialize flags in nft_arp_parse_meta
nft: arp: add parse_target to nft_family_ops_arp
nft: arp: fix possible string ov...