1 //===- CombinerUtils.cpp --------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "CombinerUtils.h"
10 #include "llvm/ADT/StringSet.h"
14 StringRef
insertStrRef(StringRef S
) {
18 static StringSet
<> Pool
;
19 auto [It
, Inserted
] = Pool
.insert(S
);