[clang] [CUDA] Emit used function list in deterministic order. (PR #102661)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 9 15:01:00 PDT 2024


================
@@ -950,6 +950,9 @@ void CodeGenModule::Release() {
       UsedArray.push_back(llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(
           GetAddrOfGlobal(GD), Int8PtrTy));
     }
+    // Sort decls by name to always emit them in deterministic order.
----------------
Artem-B wrote:

Thanks for the hint. `MapVector` sounds like the right tool for the job.

https://github.com/llvm/llvm-project/pull/102661


More information about the cfe-commits mailing list