Skip to content

Replace remaining uses of absl::make_unique with std::make_unique. - #5254

Merged
ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:make-unique
Mar 30, 2021
Merged

ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:make-unique

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

We use std::make_unique throughout the project. If we needed compatibility with older compilers, we could switch to absl::make_unique (source) or add our own implementation without a dep on abseil (see #3848).

@ScottTodd ScottTodd added the runtime Relating to the IREE runtime library label Mar 30, 2021
@ScottTodd
ScottTodd requested a review from benvanik March 30, 2021 19:44
@google-cla google-cla Bot added the cla: yes label Mar 30, 2021
@benvanik

Copy link
Copy Markdown
Collaborator

💯

LLVM requires std::make_unique so we're mostly ok with requiring it in the runtime as well - it's 4 lines of code to emulate if needed so ejecting abseil and adding it back as needed is the right approach, and really we should get to the point where none of the core runtime is using C++ anyway :)

@ScottTodd

Copy link
Copy Markdown
Member Author

Test failures are unrelated. Merging without rebasing and re-running tests.

@ScottTodd
ScottTodd merged commit d4304f3 into iree-org:main Mar 30, 2021
@ScottTodd
ScottTodd deleted the make-unique branch March 30, 2021 20:15
@KoolJBlack KoolJBlack mentioned this pull request Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

runtime Relating to the IREE runtime library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants