[NFC] Fix typo in CAPI (#185973)
Fixed typo in https://github.com/llvm/llvm-project/pull/83992 Changed function names `Disctinct` -> `Distinct`
This commit is contained in:
parent
53956753fc
commit
3edd5a9335
@ -319,9 +319,9 @@ mlirSymbolRefAttrGetNestedReference(MlirAttribute attr, intptr_t pos);
|
||||
/// Returns the typeID of an SymbolRef attribute.
|
||||
MLIR_CAPI_EXPORTED MlirTypeID mlirSymbolRefAttrGetTypeID(void);
|
||||
|
||||
/// Creates a DisctinctAttr with the referenced attribute.
|
||||
/// Creates a DistinctAttr with the referenced attribute.
|
||||
MLIR_CAPI_EXPORTED MlirAttribute
|
||||
mlirDisctinctAttrCreate(MlirAttribute referencedAttr);
|
||||
mlirDistinctAttrCreate(MlirAttribute referencedAttr);
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Flat SymbolRef attribute.
|
||||
|
||||
@ -347,7 +347,7 @@ MlirTypeID mlirSymbolRefAttrGetTypeID(void) {
|
||||
return wrap(SymbolRefAttr::getTypeID());
|
||||
}
|
||||
|
||||
MlirAttribute mlirDisctinctAttrCreate(MlirAttribute referencedAttr) {
|
||||
MlirAttribute mlirDistinctAttrCreate(MlirAttribute referencedAttr) {
|
||||
return wrap(mlir::DistinctAttr::create(unwrap(referencedAttr)));
|
||||
}
|
||||
|
||||
|
||||
@ -1495,7 +1495,7 @@ int printAffineMap(MlirContext ctx) {
|
||||
// CHECK: (d0, d1, d2) -> (d2)
|
||||
|
||||
// CHECK: distinct[0]<"foo">
|
||||
mlirAttributeDump(mlirDisctinctAttrCreate(
|
||||
mlirAttributeDump(mlirDistinctAttrCreate(
|
||||
mlirStringAttrGet(ctx, mlirStringRefCreateFromCString("foo"))));
|
||||
|
||||
return 0;
|
||||
|
||||
@ -250,9 +250,9 @@ static void testDebugInfoAttributes(MlirContext ctx) {
|
||||
mlirStringAttrGet(ctx, mlirStringRefCreateFromCString("bar"));
|
||||
|
||||
MlirAttribute none = mlirUnitAttrGet(ctx);
|
||||
MlirAttribute id = mlirDisctinctAttrCreate(none);
|
||||
MlirAttribute recId0 = mlirDisctinctAttrCreate(none);
|
||||
MlirAttribute recId1 = mlirDisctinctAttrCreate(none);
|
||||
MlirAttribute id = mlirDistinctAttrCreate(none);
|
||||
MlirAttribute recId0 = mlirDistinctAttrCreate(none);
|
||||
MlirAttribute recId1 = mlirDistinctAttrCreate(none);
|
||||
|
||||
// CHECK: #llvm.di_null_type
|
||||
mlirAttributeDump(mlirLLVMDINullTypeAttrGet(ctx));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user