Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
No, for two reasons:
- The attributes can be specified directly on the declaration in llvm/Frontend/OpenMP/OMPKinds.def (see D119583)
- MemoryBuiltins.cpp never had any logic about __kmpc_free_shared: I can't tell if this was a bug or intentional, but what we have today matches the behavior of MemoryBuiltins.cpp.
We can do a follow-up later to add the required attributes in OMPKinds.def if you'd like.
Comment Actions
The reason I asked is that this function is currently listed in https://github.com/llvm/llvm-project/blob/5ee0123642fee177258b0fd99f3fd659be68de60/llvm/lib/Analysis/MemoryBuiltins.cpp#L470. Is it non-functional for some reason?
Comment Actions
Huh. I could have sworn that wasn't there, but I even edited it. Well, fixed by adding D124491 :)
Comment Actions
Missing description (some bigger context or RFC why you need this, future plans with it, etc)
Comment Actions
@xbolva00 This is part of https://discourse.llvm.org/t/rfc-attributes-for-allocator-functions-in-llvm-ir/61464. @durin42 You might want to link to that in the description of this patch series.