zsrkmyn marked 18 inline comments as done.
zsrkmyn added a comment.
All done IMO. :-)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67058/new/
https://reviews.llvm.org/D67058
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://l
zsrkmyn updated this revision to Diff 219568.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67058/new/
https://reviews.llvm.org/D67058
Files:
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/attr-cpuspecific.c
clang/test/CodeGen/attr-target-mv-func-ptrs.c
clang/test/CodeGen
zsrkmyn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:3002
false);
llvm::Constant *Resolver = GetOrCreateLLVMFunction(
MangledName + ".resolver", ResolverType, GlobalDecl{},
erichkeane wrote:
> zsrkmyn wrote:
> > er
zsrkmyn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:3002
false);
llvm::Constant *Resolver = GetOrCreateLLVMFunction(
MangledName + ".resolver", ResolverType, GlobalDecl{},
erichkeane wrote:
> zsrkmyn wrote:
> > er
zsrkmyn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:3002
false);
llvm::Constant *Resolver = GetOrCreateLLVMFunction(
MangledName + ".resolver", ResolverType, GlobalDecl{},
erichkeane wrote:
> zsrkmyn wrote:
> > zs
zsrkmyn marked an inline comment as done.
zsrkmyn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:3002
false);
llvm::Constant *Resolver = GetOrCreateLLVMFunction(
MangledName + ".resolver", ResolverType, GlobalDecl{},
zsrkmyn marked an inline comment as done.
zsrkmyn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:3002
false);
llvm::Constant *Resolver = GetOrCreateLLVMFunction(
MangledName + ".resolver", ResolverType, GlobalDecl{},
zsrkmyn marked an inline comment as done.
zsrkmyn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:3005
/*ForVTable=*/false);
+auto Linkage = (FD->isCPUDispatchMultiVersion() ||
FD->isCPUSpecificMultiVersion())
+? llvm::Function::LinkOn
zsrkmyn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:3002
false);
llvm::Constant *Resolver = GetOrCreateLLVMFunction(
MangledName + ".resolver", ResolverType, GlobalDecl{},
erichkeane wrote:
> This Resolver should
zsrkmyn updated this revision to Diff 218830.
zsrkmyn retitled this revision from "[clang][CodeGen] Add alias for
cpu_dispatch function with IFunc" to "[clang][CodeGen] Add alias for
cpu_dispatch function with IFunc & Fix resolver linkage type".
CHANGES SINCE LAST ACTION
https://reviews.llvm.o
zsrkmyn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:2957
+if (!AliasFunc) {
+ auto *IFunc = cast(GetOrCreateLLVMFunction(
+ AliasName, DeclTy, GD, /*ForVTable=*/false, /*DontDefer=*/true,
erichkeane wrote:
> erichkeane
zsrkmyn added inline comments.
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:2957
+if (!AliasFunc) {
+ auto *IFunc = cast(GetOrCreateLLVMFunction(
+ AliasName, DeclTy, GD, /*ForVTable=*/false, /*DontDefer=*/true,
erichkeane wrote:
> erichkeane
zsrkmyn added a comment.
Thanks @lebedev.ri , I'm currently under discussion with @erichkeane , and
I'll add lit test after the final decision on how to solve the issue.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67058/new/
https://reviews.llvm.org/D67058
zsrkmyn created this revision.
zsrkmyn added a reviewer: erichkeane.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Multi-versioned functions defined by cpu_dispatch and implemented with IFunc
can not be called outside the translation units where they are defined due to
lac
14 matches
Mail list logo