summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/attr-alwaysinline.cpp
AgeCommit message (Collapse)Author
2024-05-04[test] %clang_cc1 -emit-llvm: remove redundant -SFangrui Song
And replace -emit-llvm -o - with -emit-llvm-only
2022-03-14[Clang] always_inline statement attributeDávid Bolvanský
Motivation: ``` int test(int x, int y) { int r = 0; [[clang::always_inline]] r += foo(x, y); // force compiler to inline this function here return r; } ``` In 2018, @kuhar proposed "Introduce per-callsite inline intrinsics" in https://reviews.llvm.org/D51200 to solve this motivation case (and many others). This patch solves this problem with call site attribute. "noinline" statement attribute already landed in D119061. Also, some LLVM Inliner fixes landed so call site attribute is stronger than function attribute. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D120717