This is an archive of the discontinued LLVM Phabricator instance.

Give attributes C++ namespaces.
ClosedPublic

Authored by fedelebron on Oct 7 2020, 3:30 PM.

Diff Detail

Event Timeline

fedelebron created this revision.Oct 7 2020, 3:30 PM
Herald added a project: Restricted Project. · View Herald Transcript
fedelebron requested review of this revision.Oct 7 2020, 3:30 PM
mehdi_amini accepted this revision.Oct 7 2020, 4:07 PM
mehdi_amini added inline comments.
mlir/include/mlir/IR/OpBase.td
795

s/types/attributes?

This revision is now accepted and ready to land.Oct 7 2020, 4:07 PM
fedelebron added inline comments.Oct 7 2020, 4:12 PM
mlir/include/mlir/IR/OpBase.td
795

Maybe? I mean attributes don't live in namespaces, since attributes are an MLIR concept, and (this notion of) namespaces are a C++ thing. What I wanted to communicate is the codegenned types will be generated inside this namesapce. WDYT? Does MLIR endorse saying attributes/things "live in" namespaces, or their dialect's namespaces?

btw, no idea what the "failed" things above in "Diff Detail" are, and clicking around didn't really teach me. Hoping I can ignore them...

btw, no idea what the "failed" things above in "Diff Detail" are, and clicking around didn't really teach me. Hoping I can ignore them...

Pre-merge testing. It is failing because of an infrastructure issue I believe (@goncharov @kuhnel ):

stderr: 'kex_exchange_identification: Connection closed by remote host
mlir/include/mlir/IR/OpBase.td
795

Then I'd rather read "The fully-qualified C++ namespace where the generated class lives."

Teh build error looks like a connection issue to github, the script can't git fetch. We already have an issue to retry in such cases.

The easiest solution is probably to just restart the buildable in Phabricator (what I just did).

fedelebron updated this revision to Diff 296995.Oct 8 2020, 9:29 AM

Fixing review comment.

jpienaar accepted this revision.Oct 8 2020, 10:01 AM

Could this be committed? (I don't have commit access)

This revision was automatically updated to reflect the committed changes.