[llvm] b82a3a8 - [IRBuilder] Reformat two functions (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 2 08:09:33 PST 2022
Author: Nikita Popov
Date: 2022-02-02T17:09:23+01:00
New Revision: b82a3a8ef3843a8b98807219db87bc12f38ed704
URL: https://github.com/llvm/llvm-project/commit/b82a3a8ef3843a8b98807219db87bc12f38ed704
DIFF: https://github.com/llvm/llvm-project/commit/b82a3a8ef3843a8b98807219db87bc12f38ed704.diff
LOG: [IRBuilder] Reformat two functions (NFC)
These were using 1-space indentation.
Added:
Modified:
llvm/lib/IR/IRBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/IRBuilder.cpp b/llvm/lib/IR/IRBuilder.cpp
index 4e8f1b5068117..aea9a2a7b6ba0 100644
--- a/llvm/lib/IR/IRBuilder.cpp
+++ b/llvm/lib/IR/IRBuilder.cpp
@@ -785,31 +785,26 @@ InvokeInst *IRBuilderBase::CreateGCStatepointInvoke(
}
CallInst *IRBuilderBase::CreateGCResult(Instruction *Statepoint,
- Type *ResultType,
- const Twine &Name) {
- Intrinsic::ID ID = Intrinsic::experimental_gc_result;
- Module *M = BB->getParent()->getParent();
- Type *Types[] = {ResultType};
- Function *FnGCResult = Intrinsic::getDeclaration(M, ID, Types);
+ Type *ResultType, const Twine &Name) {
+ Intrinsic::ID ID = Intrinsic::experimental_gc_result;
+ Module *M = BB->getParent()->getParent();
+ Type *Types[] = {ResultType};
+ Function *FnGCResult = Intrinsic::getDeclaration(M, ID, Types);
- Value *Args[] = {Statepoint};
- return createCallHelper(FnGCResult, Args, this, Name);
+ Value *Args[] = {Statepoint};
+ return createCallHelper(FnGCResult, Args, this, Name);
}
CallInst *IRBuilderBase::CreateGCRelocate(Instruction *Statepoint,
- int BaseOffset,
- int DerivedOffset,
- Type *ResultType,
- const Twine &Name) {
- Module *M = BB->getParent()->getParent();
- Type *Types[] = {ResultType};
- Function *FnGCRelocate =
- Intrinsic::getDeclaration(M, Intrinsic::experimental_gc_relocate, Types);
-
- Value *Args[] = {Statepoint,
- getInt32(BaseOffset),
- getInt32(DerivedOffset)};
- return createCallHelper(FnGCRelocate, Args, this, Name);
+ int BaseOffset, int DerivedOffset,
+ Type *ResultType, const Twine &Name) {
+ Module *M = BB->getParent()->getParent();
+ Type *Types[] = {ResultType};
+ Function *FnGCRelocate =
+ Intrinsic::getDeclaration(M, Intrinsic::experimental_gc_relocate, Types);
+
+ Value *Args[] = {Statepoint, getInt32(BaseOffset), getInt32(DerivedOffset)};
+ return createCallHelper(FnGCRelocate, Args, this, Name);
}
CallInst *IRBuilderBase::CreateGCGetPointerBase(Value *DerivedPtr,
More information about the llvm-commits
mailing list