@@ -4175,25 +4175,6 @@ class CodeGenFunction : public CodeGenTypeCache {
4175
4175
void checkTargetFeatures (const CallExpr *E, const FunctionDecl *TargetDecl);
4176
4176
void checkTargetFeatures (SourceLocation Loc, const FunctionDecl *TargetDecl);
4177
4177
4178
- // Adds a convergence_ctrl attribute to |Input| and emits the required parent
4179
- // convergence instructions.
4180
- llvm::CallBase *AddControlledConvergenceAttr (llvm::CallBase *Input);
4181
-
4182
- // Emits a convergence_loop instruction for the given |BB|, with |ParentToken|
4183
- // as it's parent convergence instr.
4184
- llvm::IntrinsicInst *EmitConvergenceLoop (llvm::BasicBlock *BB,
4185
- llvm::Value *ParentToken);
4186
- // Adds a convergence_ctrl attribute with |ParentToken| as parent convergence
4187
- // instr to the call |Input|.
4188
- llvm::CallBase *AddConvergenceControlAttr (llvm::CallBase *Input,
4189
- llvm::Value *ParentToken);
4190
- // Find the convergence_entry instruction |F|, or emits ones if none exists.
4191
- // Returns the convergence instruction.
4192
- llvm::IntrinsicInst *getOrEmitConvergenceEntryToken (llvm::Function *F);
4193
- // Find the convergence_loop instruction for the loop defined by |LI|, or
4194
- // emits one if none exists. Returns the convergence instruction.
4195
- llvm::IntrinsicInst *getOrEmitConvergenceLoopToken (const LoopInfo *LI);
4196
-
4197
4178
llvm::CallInst *EmitRuntimeCall (llvm::FunctionCallee callee,
4198
4179
const Twine &name = " " );
4199
4180
llvm::CallInst *EmitRuntimeCall (llvm::FunctionCallee callee,
@@ -4889,6 +4870,25 @@ class CodeGenFunction : public CodeGenTypeCache {
4889
4870
llvm::Value *emitBoolVecConversion (llvm::Value *SrcVec,
4890
4871
unsigned NumElementsDst,
4891
4872
const llvm::Twine &Name = " " );
4873
+ // Adds a convergence_ctrl attribute to |Input| and emits the required parent
4874
+ // convergence instructions.
4875
+ llvm::CallBase *AddControlledConvergenceAttr (llvm::CallBase *Input);
4876
+
4877
+ private:
4878
+ // Emits a convergence_loop instruction for the given |BB|, with |ParentToken|
4879
+ // as it's parent convergence instr.
4880
+ llvm::IntrinsicInst *EmitConvergenceLoop (llvm::BasicBlock *BB,
4881
+ llvm::Value *ParentToken);
4882
+ // Adds a convergence_ctrl attribute with |ParentToken| as parent convergence
4883
+ // instr to the call |Input|.
4884
+ llvm::CallBase *AddConvergenceControlAttr (llvm::CallBase *Input,
4885
+ llvm::Value *ParentToken);
4886
+ // Find the convergence_entry instruction |F|, or emits ones if none exists.
4887
+ // Returns the convergence instruction.
4888
+ llvm::IntrinsicInst *getOrEmitConvergenceEntryToken (llvm::Function *F);
4889
+ // Find the convergence_loop instruction for the loop defined by |LI|, or
4890
+ // emits one if none exists. Returns the convergence instruction.
4891
+ llvm::IntrinsicInst *getOrEmitConvergenceLoopToken (const LoopInfo *LI);
4892
4892
4893
4893
private:
4894
4894
llvm::MDNode *getRangeForLoadFromType (QualType Ty);
0 commit comments