Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

With try_emplace, we can pass the key and the arguments for the
value's constructor, which is a lot shorter than:

Map.insert(std::make_pair(Key, ValueType(Arg1, Arg2)))

With try_emplace, we can pass the key and the arguments for the
value's constructor, which is a lot shorter than:

  Map.insert(std::make_pair(Key, ValueType(Arg1, Arg2)))
@kazutakahirata kazutakahirata merged commit 160b727 into llvm:main Oct 26, 2025
15 of 16 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20251026_CodeGen_try_emplace branch October 26, 2025 20:34
varun-r-mallya pushed a commit to varun-r-mallya/llvm-project that referenced this pull request Oct 27, 2025
With try_emplace, we can pass the key and the arguments for the
value's constructor, which is a lot shorter than:

  Map.insert(std::make_pair(Key, ValueType(Arg1, Arg2)))
dvbuka pushed a commit to dvbuka/llvm-project that referenced this pull request Oct 27, 2025
With try_emplace, we can pass the key and the arguments for the
value's constructor, which is a lot shorter than:

  Map.insert(std::make_pair(Key, ValueType(Arg1, Arg2)))
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
With try_emplace, we can pass the key and the arguments for the
value's constructor, which is a lot shorter than:

  Map.insert(std::make_pair(Key, ValueType(Arg1, Arg2)))
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
With try_emplace, we can pass the key and the arguments for the
value's constructor, which is a lot shorter than:

  Map.insert(std::make_pair(Key, ValueType(Arg1, Arg2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants