/
githubmirror
/
julia
Обзор
Документация
Войти
/
githubmirror
/
julia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/llvmpasses/noinline.jl
21 строка
813 B
Elliot Saba
Revert "Revert "add stack-probes to make stack-overflow detection more reliable (#40068)""
24 авг 2021, 21:32
24 авг 2021, 21:32
24e0831
Код
Авторство
О чём код?
# This file is a part of Julia. License is MIT: https://julialang.org/license # RUN: julia --startup-file=no %s %t && llvm-link -S %t/* -o %t/module.ll # RUN: cat %t/module.ll | FileCheck %s ## Notes: # This script uses the `emit` function (defined llvmpasses.jl) to emit either # optimized or unoptimized LLVM IR. Each function is emitted individually and # `llvm-link` is used to create a single module that can be passed to opt. # The order in which files are emitted and linked is important since `lit` will # process the test cases in order. include(joinpath("..", "testhelpers", "llvmpasses.jl")) # CHECK-LABEL: @julia_simple_noinline @noinline function simple_noinline(A, B) return A + B end # CHECK: attributes #{{[0-9]+}} = {{{[^}]*}} noinline {{[^}]*}}} emit(simple_noinline, Float64, Float64)