Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It makes sense to me. If a function is marked with NoDuplicate, we shouldn't clone it. Everything is fine.
But I want to ask, in what situations, generally a function would be marked with NoDuplicate attribute? I didn't find it in docs or codes.
Comment Actions
In Clang, there's a no duplicate function attribute, see https://clang.llvm.org/docs/AttributeReference.html#noduplicate.
And that can translate to LLVM IR function attribute no duplicate, see also https://llvm.org/docs/LangRef.html#function-attributes.