Skip to content

Commit 1462274

Browse files
committed
Renamed function based on clang-tidy.
1 parent 882aaf7 commit 1462274

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/kllvm/codegen/CreateTerm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ llvm::Value *allocate_term(
164164
llvm::Value *allocate_term(
165165
llvm::Type *alloc_type, llvm::BasicBlock *block,
166166
char const *alloc_fn = "kore_alloc", bool mergeable = false);
167-
llvm::Value *addrspaceCast0To0(
167+
llvm::Value *addrspace_cast0_to0(
168168
llvm::Module *module, llvm::Value *val, llvm::BasicBlock *block);
169169
} // namespace kllvm
170170

lib/codegen/CreateTerm.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static llvm::Value *addrspaceCast(
186186
return addrspace;
187187
}
188188

189-
llvm::Value *addrspaceCast0to0(
189+
llvm::Value *addrspace_cast0_to0(
190190
llvm::Module *module, llvm::Value *val, llvm::BasicBlock *block) {
191191
return addrspaceCast(module, val, block, 0, 0);
192192
}
@@ -934,7 +934,7 @@ llvm::Value *create_term::create_function_call(
934934
true);
935935
auto *alloc_sret_cast
936936
= use_gcstrategy
937-
? addrspaceCast0to0(module_, alloc_sret, current_block_)
937+
? addrspace_cast0_to0(module_, alloc_sret, current_block_)
938938
: alloc_sret;
939939
sret_type = return_type;
940940
real_args.insert(real_args.begin(), alloc_sret_cast);
@@ -1034,7 +1034,7 @@ llvm::Value *create_term::not_injection_case(
10341034
? llvm::PointerType::get(module_->getContext(), 0)
10351035
: llvm::PointerType::getUnqual(module_->getContext());
10361036
auto *block_cast = use_gcstrategy
1037-
? addrspaceCast0to0(module_, block, current_block_)
1037+
? addrspace_cast0_to0(module_, block, current_block_)
10381038
: block;
10391039
if (symbol_decl->attributes().contains(attribute_set::key::Binder)) {
10401040
auto *call = llvm::CallInst::Create(
@@ -1432,7 +1432,7 @@ std::string make_apply_rule_function(
14321432
get_collection_alloc_fn(cat.cat), true);
14331433
auto *ptr_cast
14341434
= use_gcstrategy
1435-
? addrspaceCast0to0(module, ptr, creator.get_current_block())
1435+
? addrspace_cast0_to0(module, ptr, creator.get_current_block())
14361436
: ptr;
14371437
new llvm::StoreInst(arg, ptr_cast, creator.get_current_block());
14381438
arg = ptr_cast;

0 commit comments

Comments
 (0)