aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-07-02 01:11:50 +0000
committerEric Christopher <echristo@gmail.com>2015-07-02 01:11:50 +0000
commite1002268798ecedadaa9cdf6cc52b26e446ef3a7 (patch)
tree3ea1e0fe0e95d9ef62e37e2004eaae56481489ee /clang/lib/CodeGen/CodeGenFunction.cpp
parent4371b13937ecdd881da0eb3550af370ec4c3d5a2 (diff)
downloadllvm-e1002268798ecedadaa9cdf6cc52b26e446ef3a7.zip
llvm-e1002268798ecedadaa9cdf6cc52b26e446ef3a7.tar.gz
llvm-e1002268798ecedadaa9cdf6cc52b26e446ef3a7.tar.bz2
Implement TargetTransformInfo::hasCompatibleFunctionAttributes for X86.
This checks subtarget feature compatibility for inlining by verifying that the callee is a strict subset of the caller's features. This includes the cpu as part of the subtarget we can get via the incoming functions as the backend takes CPUs as feature sets. This allows us to inline things like: int foo() { return baz(); } int __attribute__((target("sse4.2"))) bar() { return foo(); } so that generic code can be inlined into specialized functions. llvm-svn: 241221
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions