File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
llvm/lib/Transforms/Vectorize/SandboxVectorizer Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,24 +28,24 @@ PreservedAnalyses SandboxVectorizerPass::run(Function &F,
28
28
return PA;
29
29
}
30
30
31
- bool SandboxVectorizerPass::runImpl (Function &F ) {
31
+ bool SandboxVectorizerPass::runImpl (Function &LLVMF ) {
32
32
// If the target claims to have no vector registers early return.
33
33
if (!TTI->getNumberOfRegisters (TTI->getRegisterClassForType (true ))) {
34
34
LLVM_DEBUG (dbgs () << " SBVec: Target has no vector registers, return.\n " );
35
35
return false ;
36
36
}
37
- LLVM_DEBUG (dbgs () << " SBVec: Analyzing " << F .getName () << " .\n " );
37
+ LLVM_DEBUG (dbgs () << " SBVec: Analyzing " << LLVMF .getName () << " .\n " );
38
38
// Early return if the attribute NoImplicitFloat is used.
39
- if (F .hasFnAttribute (Attribute::NoImplicitFloat)) {
39
+ if (LLVMF .hasFnAttribute (Attribute::NoImplicitFloat)) {
40
40
LLVM_DEBUG (dbgs () << " SBVec: NoImplicitFloat attribute, return.\n " );
41
41
return false ;
42
42
}
43
43
44
- sandboxir::Context Ctx (F .getContext ());
45
- // Create SandboxIR for `F `.
46
- sandboxir::Function &SBF = *Ctx.createFunction (&F );
44
+ sandboxir::Context Ctx (LLVMF .getContext ());
45
+ // Create SandboxIR for `LLVMF `.
46
+ sandboxir::Function &F = *Ctx.createFunction (&LLVMF );
47
47
// TODO: Initialize SBVec Pass Manager
48
- (void )SBF ;
48
+ (void )F ;
49
49
50
50
return false ;
51
51
}
You can’t perform that action at this time.
0 commit comments