# US 2023/0057600 A1 · Metadata predictor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0057600 A1
- Document ID: US20230057600A1
- Status: Published application
- Kind: A1
- Application number: 17/406,513
- Filed: 2021-08-19
- Published: 2023-02-23
- Earliest claimed: 2021-08-19
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Edward Thomas MALLEY; Adam Benjamin COLLURA; Brian Robert PRASKY; James BONANNO; Dominic DITOMASO
- Web page: https://patentgrep.com/patent/US20230057600A1

## CPC

- G06F 9/355: Indexed addressing
- G06F 9/3848: {using hybrid branch prediction, e.g. selection between prediction techniques}
- G06F 9/30079: {Pipeline control instructions, e.g. multicycle NOP}
- G06F 9/3806: {using address prediction, e.g. return stack, branch history buffer}
- G06F 9/3814: {Implementation provisions of instruction buffers, e.g. prefetch buffer; banks}
- G06F 9/3875: {Pipelining a single stage, e.g. superpipelining}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments for a metadata predictor. An index pipeline generates indices in an index buffer in which the indices are used for reading out a memory device. A prediction cache is populated with metadata of instructions read from the memory device. A prediction pipeline generates a prediction using the metadata of the instructions from the prediction cache, the populating of the prediction cache with the metadata of the instructions being performed asynchronously to the operating of the prediction pipeline.

## Claims

### Claim 1

A computer-implemented method comprising:
operating an index pipeline to generate indices in an index buffer in which the indices are used for reading out a memory device;
populating a prediction cache with metadata of instructions, the metadata of instructions being read from the memory device; and
operating a prediction pipeline to generate a prediction using the metadata of the instructions from the prediction cache, the populating of the prediction cache with the metadata of the instructions being performed asynchronously to the operating of the prediction pipeline.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the populating of the prediction cache with the metadata of the instructions being performed asynchronously to the operating of the prediction pipeline comprises continually indexing the memory device to read out the metadata for the prediction cache independent of processes in the prediction pipeline.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the index buffer is configured to read out the memory device having the metadata for the prediction cache without reliance on and in advance of generating the prediction using the metadata from the prediction cache.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the prediction pipeline is configured to output a line of the metadata of the instructions from the prediction cache.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the prediction pipeline is configured to continuously reuse a line of the metadata of the instructions from the prediction cache without having to re-access the memory device.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the prediction pipeline is configured to continuously reuse a line of the metadata of the instructions that has been output from the prediction cache in order to generate a new prediction, responsive to a previous prediction being predicted to the line of the metadata.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the prediction is provided to an out-of-order instruction execution pipeline, the out-of-order instruction execution pipeline operating in parallel to the index pipeline and the prediction pipeline.

### Claim 8

A system comprising:
a memory having computer readable instructions; and
one or more processors for executing the computer readable instructions, the computer readable instructions controlling the one or more processors to perform processes comprising:
operating an index pipeline to generate indices in an index buffer in which the indices are used for reading out a memory device;
populating a prediction cache with metadata of instructions from the memory device; and
operating a prediction pipeline to generate a prediction using the metadata of the instructions from the prediction cache, the populating of the prediction cache with the metadata of the instructions being performed asynchronously to the operating of the prediction pipeline.

### Claim 9 (depends on 8)

The system of claim 8, wherein the populating of the prediction cache with the metadata of the instructions being performed asynchronously to the operating of the prediction pipeline comprises continually indexing the memory device to read out the metadata for the prediction cache independent of processes in the prediction pipeline.

### Claim 10 (depends on 8)

The system of claim 8, wherein the index buffer is configured to read out the memory device having the metadata for the prediction cache without reliance on and in advance of generating the prediction using the metadata from the prediction cache.

### Claim 11 (depends on 8)

The system of claim 8, wherein the prediction pipeline is configured to output a line of the metadata of the instructions from the prediction cache.

### Claim 12 (depends on 8)

The system of claim 8, wherein the prediction pipeline is configured to continuously reuse a line of the metadata of the instructions from the prediction cache without having to re-access the memory device.

### Claim 13 (depends on 8)

The system of claim 8, wherein the prediction pipeline is configured to continuously reuse a line of the metadata of the instructions that has been output from the prediction cache in order to generate a new prediction, responsive to a previous prediction being predicted to the line of the metadata.

### Claim 14 (depends on 8)

The system of claim 8, wherein the prediction is provided to an out-of-order instruction execution pipeline, the out-of-order instruction execution pipeline operating in parallel to the index pipeline and the prediction pipeline.

### Claim 15

A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by one or more processors to cause the one or more processors to perform processes comprising:
operating an index pipeline to generate indices in an index buffer in which the indices are used for reading out a memory device;
populating a prediction cache with metadata of instructions from the memory device; and
operating a prediction pipeline to generate a prediction using the metadata of the instructions from the prediction cache, the populating of the prediction cache with the metadata of the instructions being performed asynchronously to the operating of the prediction pipeline.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the populating of the prediction cache with the metadata of the instructions being performed asynchronously to the operating of the prediction pipeline comprises continually indexing the memory device to read out the metadata for the prediction cache independent of processes in the prediction pipeline.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein the index buffer is configured to read out the memory device having the metadata for the prediction cache without reliance on and in advance of generating the prediction using the metadata from the prediction cache.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the prediction pipeline is configured to output a line of the metadata of the instructions from the prediction cache.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein the prediction pipeline is configured to continuously reuse a line of the metadata of the instructions from the prediction cache without having to re-access the memory device.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the prediction pipeline is configured to continuously reuse a line of the metadata of the instructions that has been output from the prediction cache in order to generate a new prediction, responsive to a previous prediction being predicted to the line of the metadata.

### Claim 21

A computer-implemented method comprising:
using a reset address to query an index accelerator;
determining that an index line is present in the index accelerator responsive to the query;
determining a sequential line to the index line in the index accelerator; and
providing an index buffer with the sequential line.

### Claim 22 (depends on 21)

The computer-implemented method of claim 21, wherein:
the index accelerator is configured to determine one or more other sequential lines based on the index line; and
the index accelerator is configured to provide the index buffer with the sequential line and the one or more other sequential lines in advance of the sequential line and the one or more other sequential lines being required by a prediction pipeline.

### Claim 23 (depends on 21)

The computer-implemented method of claim 21, wherein the index line comprises an exit target instruction address of a branch for a given entry instruction address.

### Claim 24

A computer-implemented method comprising:
using metadata to generate a primary prediction and an auxiliary prediction;
determining that the primary prediction and the auxiliary prediction are different;
selecting the auxiliary prediction, responsive to the primary prediction and the auxiliary prediction being different;
extending a length of a prediction pipeline for a predetermined time; and
providing the auxiliary prediction to an instruction execution pipeline.

### Claim 25 (depends on 24)

The computer-implemented method of claim 24, wherein the auxiliary prediction requires a longer processing time than the primary prediction.
