search for: simpletyp

Displaying 20 results from an estimated 23 matches for "simpletyp".

Did you mean: simplety
2010 Jul 21
2
[LLVMdev] Casting.h illness
...s to simplify Val to a pointer first and then do the comparison against NULL, the instance check and the cast. I tried this (using getSimplifiedValue), but got further problems and had to add a specialization +template<typename From> struct simplify_type<From*const> { + typedef From* SimpleType; + static SimpleType &getSimplifiedValue(From*const &Val) { + return const_cast<From*&>(Val); + } +}; Is there a simpler way to accomplish this? Cheers, Gabor
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
...on 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, typename simplify_type<Y>::S...
2010 Jul 21
0
[LLVMdev] Casting.h illness
...rst and then do the > comparison against NULL, the instance check and the cast. > > I tried this (using getSimplifiedValue), but got further problems and had to > add a specialization > > +template<typename From> struct simplify_type<From*const> { > +  typedef From* SimpleType; > +  static SimpleType &getSimplifiedValue(From*const &Val) { > +    return const_cast<From*&>(Val); > +  } > +}; > > Is there a simpler way to accomplish this? > > Cheers, > >        Gabor > _______________________________________________ > L...
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, > >
2010 Jun 22
0
XMLSchema:::processSchemaTypes() fails with XMLSchema.xsd [was: SSOAP fails with .types[[1]] : subscript out of bounds]
...tp://www.w3.org/XML/1998/namespace 2 ) lang ( attribute ) 3 ) space ( attribute ) 4 ) base ( attribute ) 5 ) id ( attribute ) 6 ) specialAttrs ( attributeGroup ) 5 ) openAttrs ( complexType ) 6 ) annotated ( complexType ) 7 ) schemaTop ( group ) 8 ) redefinable ( group ) 9 ) formChoice ( simpleType ) 10 ) reducedDerivationControl ( simpleType ) 11 ) derivationSet ( simpleType ) Error in validObject(.Object) : invalid class "RestrictedListType" object: invalid object for slot "name" in class "RestrictedListType": got class "NULL", should be or exte...
2010 Jul 21
2
[LLVMdev] Casting.h illness
...omparison against NULL, the instance check and the cast. >> >> I tried this (using getSimplifiedValue), but got further problems and had to >> add a specialization >> >> +template<typename From> struct simplify_type<From*const> { >> + typedef From* SimpleType; >> + static SimpleType &getSimplifiedValue(From*const &Val) { >> + return const_cast<From*&>(Val); >> + } >> +}; >> >> Is there a simpler way to accomplish this? >> >> Cheers, >> >> Gabor >> _______...
2018 Jan 26
1
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...mangled>" (<redacted>) in <internal> and in >>> <redacted_filename>.obj, looking at the .yaml dump the symbols are all >>> similar to this: >>> >>> - Name: <redacted> >>> Value: 0 >>> SectionNumber: 0 >>> SimpleType: IMAGE_SYM_TYPE_NULL >>> ComplexType: IMAGE_SYM_DTYPE_FUNCTION >>> StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL >>> WeakExternal: >>> TagIndex: 134 >>> Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY >>> >>> On Thu, Jan 25, 2018 at 8:...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ted>) in <internal> and in >>>> <redacted_filename>.obj, looking at the .yaml dump the symbols are all >>>> similar to this: >>>> >>>> - Name: <redacted> >>>> Value: 0 >>>> SectionNumber: 0 >>>> SimpleType: IMAGE_SYM_TYPE_NULL >>>> ComplexType: IMAGE_SYM_DTYPE_FUNCTION >>>> StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL >>>> WeakExternal: >>>> TagIndex: 134 >>>> Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY >>>> >>>&gt...
2018 Jan 26
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ymbol: "<redacted_unmangled>" >> (<redacted>) in <internal> and in <redacted_filename>.obj, looking at the >> .yaml dump the symbols are all similar to this: >> >> - Name: <redacted> >> Value: 0 >> SectionNumber: 0 >> SimpleType: IMAGE_SYM_TYPE_NULL >> ComplexType: IMAGE_SYM_DTYPE_FUNCTION >> StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL >> WeakExternal: >> TagIndex: 134 >> Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY >> >> On Thu, Jan 25, 2018 at 8:01 PM, Zachary Turner <zt...
2018 Jan 26
3
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...and in >>>>> <redacted_filename>.obj, looking at the .yaml dump the symbols are all >>>>> similar to this: >>>>> >>>>> - Name: <redacted> >>>>> Value: 0 >>>>> SectionNumber: 0 >>>>> SimpleType: IMAGE_SYM_TYPE_NULL >>>>> ComplexType: IMAGE_SYM_DTYPE_FUNCTION >>>>> StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL >>>>> WeakExternal: >>>>> TagIndex: 134 >>>>> Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY >>>...
2018 Jan 26
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...b1158ac6829e I'm seeing: lld-link.exe: error: duplicate symbol: "<redacted_unmangled>" (<redacted>) in <internal> and in <redacted_filename>.obj, looking at the .yaml dump the symbols are all similar to this: - Name: <redacted> Value: 0 SectionNumber: 0 SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_FUNCTION StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL WeakExternal: TagIndex: 134 Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY On Thu, Jan 25, 2018 at 8:01 PM, Zachary Turner <zturner at google.com> wrote: > I haven't really dabb...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...link.exe: error: duplicate symbol: "<redacted_unmangled>" > (<redacted>) in <internal> and in <redacted_filename>.obj, looking at the > .yaml dump the symbols are all similar to this: > > - Name: <redacted> > Value: 0 > SectionNumber: 0 > SimpleType: IMAGE_SYM_TYPE_NULL > ComplexType: IMAGE_SYM_DTYPE_FUNCTION > StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL > WeakExternal: > TagIndex: 134 > Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY > > On Thu, Jan 25, 2018 at 8:01 PM, Zachary Turner <zturner at google.com> >...
2013 Aug 22
2
[LLVMdev] Crash in CreateShl() method
...= (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 crash be fixed? Thanks in advance -- * Ras...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...> <redacted_filename>.obj, looking at the .yaml dump the symbols are all >>>>>> similar to this: >>>>>> >>>>>> - Name: <redacted> >>>>>> Value: 0 >>>>>> SectionNumber: 0 >>>>>> SimpleType: IMAGE_SYM_TYPE_NULL >>>>>> ComplexType: IMAGE_SYM_DTYPE_FUNCTION >>>>>> StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL >>>>>> WeakExternal: >>>>>> TagIndex: 134 >>>>>> Characteristics: IMAGE_WEAK_EXTERN_SEARCH_...
2018 Jan 25
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...y Turner <zturner at google.com> wrote: > If you run obj2yaml against a very simple object file, you'll see > something like this at the end: > ``` > symbols: > - Name: '@comp.id' > Value: 17130443 > SectionNumber: -1 > SimpleType: IMAGE_SYM_TYPE_NULL > ComplexType: IMAGE_SYM_DTYPE_NULL > StorageClass: IMAGE_SYM_CLASS_STATIC > - Name: '@feat.00' > Value: 2147484048 <(21)%204748-4048> > SectionNumber: -1 > SimpleType: IMAGE_SYM_TYPE...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t; wrote: > >> If you run obj2yaml against a very simple object file, you'll see >> something like this at the end: >> ``` >> symbols: >> - Name: '@comp.id' >> Value: 17130443 >> SectionNumber: -1 >> SimpleType: IMAGE_SYM_TYPE_NULL >> ComplexType: IMAGE_SYM_DTYPE_NULL >> StorageClass: IMAGE_SYM_CLASS_STATIC >> - Name: '@feat.00' >> Value: 2147484048 <(21)%204748-4048> >> SectionNumber: -1 >> SimpleT...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
If you run obj2yaml against a very simple object file, you'll see something like this at the end: ``` symbols: - Name: '@comp.id' Value: 17130443 SectionNumber: -1 SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_NULL StorageClass: IMAGE_SYM_CLASS_STATIC - Name: '@feat.00' Value: 2147484048 SectionNumber: -1 SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_NULL Sto...
2011 Apr 21
2
[LLVMdev] Compilation error with LLVM 2.9
...^ /usr/include/llvm/Support/Casting.h:85:71: note: in instantiation of member function 'llvm::isa_impl_wrap<llvm::PHINode, const llvm::User, const llvm::User>::doit' requested here typename simplify_type<const FromCl>::SimpleType>::doit(Val); ^ /usr/include/llvm/Support/Casting.h:103:12: note: in instantiation of function template specialization 'llvm::isa_impl_cl<llvm::User>::isa<llvm::PHINode>' requested here...
2015 Jan 19
3
[LLVMdev] Assertion: replaceAllUses of value with new value of different type! being thrown all of a sudden
> On 2015-Jan-19, at 12:38, Frédéric Riss <friss at apple.com> wrote: > > >> On Jan 19, 2015, at 12:04 PM, Christian Schafmeister <chris.schaf at verizon.net> wrote: >> >> >> I forgot to mention this in my initial email. >> >> The build of LLVM that I was using was commit a0d5d7aed8e177cea381b3d054d80c212ece9f2c >> The date on the