Skip to content

Commit be3e74b

Browse files
authored
Integrate llvm/llvm-project@282d50147628 (2023-12-19) (#2675)
1 parent ebaab42 commit be3e74b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

externals/llvm-project

Submodule llvm-project updated 1530 files

lib/Dialect/Torch/Transforms/ReduceOpVariants.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class ReduceTrailingUnderscoreInplaceVariant : public RewritePattern {
274274

275275
SmallVector<StringRef> fragments;
276276
llvm::SplitString(op->getName().getStringRef(), fragments, ".");
277-
assert(fragments.size() >= 3 && fragments[2].endswith("_") &&
277+
assert(fragments.size() >= 3 && fragments[2].ends_with("_") &&
278278
"IsTrailingUnderscoreInplaceVariant incorrectly applied");
279279
fragments[2] = fragments[2].drop_back();
280280
std::string noUnderscoreName = llvm::join(fragments, ".");

lib/Dialect/Torch/Transforms/ReifyAbstractInterpCalculationsUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ LogicalResult Torch::wrapWithCalculateOpIfLibraryFunctionAvailable(
7878
// mechanically consistent with existing torch conventions of in-place vs.
7979
// out-of-place (value-semantic) variants), remove the prefix when
8080
// looking them up in the library.
81-
if (name.startswith("valsem."))
81+
if (name.starts_with("valsem."))
8282
name = name.drop_front(strlen("valsem."));
8383
if (isa<OperatorOp>(op))
8484
name = cast<OperatorOp>(op)->getAttr("name").cast<StringAttr>().getValue();

0 commit comments

Comments
 (0)