Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

QIR runtime heap alloc and heap free functions should be removed #702

@swernli

Description

@swernli

The QIR runtime currently includes functions for allocating and freeing memory from the heap:

define dllexport i8* @__quantum__rt__heap_alloc(i64 %size) {

define dllexport void @__quantum__rt__heap_free(i8* %mem) {

These two methods are neither part of the QIR specification, nor are they used anywhere in the runtime implementation or in QIR generation, making them dead code. If we expect them to be needed in the future then we should update the QIR spec to describe their intended use, otherwise we should remove them and the underlying support to avoid the cost of maintaining them.

@bettinaheim @alan-geller @kuzminrobin FYI.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions