search for: some_annot

Displaying 1 result from an estimated 1 matches for "some_annot".

2019 Jul 25
2
Typeless pointers and intrinsics
...m asking this in a separate thread. >> I took a look earlier and didn't notice any target-independent ones that would need a separate type parameter Do you know what would happen with the llvm.ptr.annotation intrinsic? Frontends use that to annotate members of structs: struct S { [[some_annotation]] int annotated_array[10]; int not_annotated_array[100; }; However, there is a big difference between annotating a pointer of type S*, a pointer of type [10 x i32]*, and a pointer of type i8*. The intrinsic is overloaded for "any pointer" type to allow distinguishing between th...