aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionAnalysis.cpp
diff options
context:
space:
mode:
authorBrian Gesiak <brian@modocache.io>2024-04-29 18:43:08 -0400
committerGitHub <noreply@github.com>2024-04-29 18:43:08 -0400
commite24a7bbf4515213f44d410bfc41b3dff27c49c86 (patch)
tree0573f9175988af48c2886f2ab9591b3cfde43e18 /llvm/lib/CodeGen/MachineFunctionAnalysis.cpp
parentd47c4984e9ea80ffd01efb084df9485d314d1d14 (diff)
downloadllvm-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