This is an archive of the discontinued LLVM Phabricator instance.

[mlir][NFC] Use fully qualified C++ namespaces in .td files.
ClosedPublic

Authored by vinograd47 on Feb 6 2023, 4:18 AM.

Details

Summary

Add missing llvm:: and mlir:: namespaces qualifiers to some auto-generated code.

Diff Detail

Event Timeline

vinograd47 created this revision.Feb 6 2023, 4:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2023, 4:18 AM
vinograd47 requested review of this revision.Feb 6 2023, 4:18 AM
springerm accepted this revision.Feb 6 2023, 4:20 AM
This revision is now accepted and ready to land.Feb 6 2023, 4:20 AM
ftynse added inline comments.Feb 6 2023, 4:20 AM
mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.td
475–477

Nit: we prefer global fully qualified names, ::mlir::foo here in case the code is being emitted inside something like namespace myproject::mlir.

ftynse requested changes to this revision.Feb 6 2023, 4:20 AM
This revision now requires changes to proceed.Feb 6 2023, 4:20 AM
ftynse accepted this revision.Feb 6 2023, 4:31 AM
ftynse added inline comments.
mlir/include/mlir/Interfaces/SideEffectInterfaceBase.td
64

Also ::llvm here :)

This revision is now accepted and ready to land.Feb 6 2023, 4:31 AM
vinograd47 added inline comments.Feb 6 2023, 4:33 AM
mlir/include/mlir/Interfaces/SideEffectInterfaceBase.td
64

As I can see, in all other places in this file llvm namespace is used without leading ::. So I decided to keep consistency :)

ftynse added inline comments.Feb 6 2023, 4:34 AM
mlir/include/mlir/Interfaces/SideEffectInterfaceBase.td
64

I'd suggest updating those too.