Skip to content

[NFC] Fixing typos in MLGO.rst #141878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions llvm/docs/MLGO.rst
Original file line number Diff line number Diff line change
Expand Up @@ -492,15 +492,15 @@ embeddings can be computed and accessed via an ``ir2vec::Embedder`` instance.
3. **Compute and Access Embeddings**:
Call ``getFunctionVector()`` to get the embedding for the function.

.. code-block:: c++
.. code-block:: c++

const ir2vec::Embedding &FuncVector = Emb->getFunctionVector();
const ir2vec::Embedding &FuncVector = Emb->getFunctionVector();

Currently, ``Embedder`` can generate embeddings at three levels: Instructions,
Basic Blocks, and Functions. Appropriate getters are provided to access the
embeddings at these levels.

.. note::
.. note::

The validity of ``Embedder`` instance (and the embeddings it generates) is
tied to the function it is associated with remains unchanged. If the function
Expand Down
Loading