Skip to content

Плеханов Даниил. Лабораторная работа 2, Вариант 2, LLVM IR. #89

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

Open
wants to merge 13 commits into
base: course-spring-2025
Choose a base branch
from

Conversation

Dxppi
Copy link

@Dxppi Dxppi commented Apr 9, 2025

LLVM-проход, который анализирует функции и добавляет им атрибут "pure", если они соответствуют этому критерию. Анализ выполняется путем обхода функции по базовым блокам, где в каждом блоке происходит проверка инструкций. Каждой инструкции применяется анализ на предмет возможности чтения или записи в память.

BUILDTREE_ONLY
)
set(LLVM_TEST_DEPENDS ${TARGET_NAME} ${LLVM_TEST_DEPENDS} PARENT_SCOPE)
endif()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
endif()
endif()

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

#include "llvm/Passes/PassBuilder.h"
#include "llvm/Passes/PassPlugin.h"

using namespace llvm;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, remove from global scope

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants