diff options
author | Brian Gesiak <brian@modocache.io> | 2024-04-29 18:43:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 18:43:08 -0400 |
commit | e24a7bbf4515213f44d410bfc41b3dff27c49c86 (patch) | |
tree | 0573f9175988af48c2886f2ab9591b3cfde43e18 /llvm/lib/CodeGen/MachineFunctionAnalysis.cpp | |
parent | d47c4984e9ea80ffd01efb084df9485d314d1d14 (diff) | |
download | llvm-e24a7bbf4515213f44d410bfc41b3dff27c49c86.zip llvm-e24a7bbf4515213f44d410bfc41b3dff27c49c86.tar.gz llvm-e24a7bbf4515213f44d410bfc41b3dff27c49c86.tar.bz2 |
[mlir-lsp] Support outgoing requests (#90078)
Add support for outgoing requests to `lsp::MessageHandler`. Much like
`MessageHandler::outgoingNotification`, this allows for the message
handler to send outgoing messages via its JSON transport, but in this
case, those messages are requests, not notifications.
Requests receive responses (also referred to as "replies" in
`MLIRLspServerSupportLib`). These were previously unsupported, and
`lsp::MessageHandler` would log an error each time it processed a JSON
message that appeared to be a response (something with an "id" field,
but no "method" field). However, the `outgoingRequest` method now
handles response callbacks: an outgoing request with a given ID is set
up such that a callback function is invoked when a response with that ID
is received.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions