search for: dllimport_inlin

Displaying 3 results from an estimated 3 matches for "dllimport_inlin".

Did you mean: dllimport_inline
2013 Apr 23
0
[LLVMdev] Feedback required on proper dllexport/import implementation
...ll forget to check the attributes when writing their new optimization or garbage collection passes. I think dllimport inline functions are more closely related to the available_externally linkage than linkonce_odr; no COMDAT is involved and no .linkonce discard directive is needed. I would name it dllimport_inline or something similar. While it makes sense to mimic MSVC behavior and MSDN doc for C++ codes, it is not very clear to me what should be the correct semantics when a C99 inline function carries a dllimport/dllexport declspec. For example, inline __declspec(dllimport) int foo() { return 100; } ext...
2013 Mar 26
6
[LLVMdev] Feedback required on proper dllexport/import implementation
Hello, while improving and extending support for dllexport/import I have noticed that the current way these are implemented is problematic and I would like some input on how to proceed. Currently dllexport/dllimport is treated as linkage type. This conflicts with inlined functions because there is no linkage for the combination of both. On first though, combining both doesn't make sense, but
2013 Apr 23
2
[LLVMdev] Feedback required on proper dllexport/import implementation
...lows such functions to have linkonce_odr and weak_odr linkage and not be discarded. > I think dllimport inline functions are more closely related to the available_externally > linkage than linkonce_odr; no COMDAT is involved and no .linkonce discard directive > is needed. I would name it dllimport_inline or something similar. Hm, I don't think so, because dllimported inline functions must never be instantiated, or else you get duplicated symbols. They are only allowed to be expanded. At the moment I solve this by checking for definitions during codegen (this means they survived the inliner...