Skip to content

Commit e6db935

Browse files
committed
[llvm] clang-format changes to IR library
1 parent 83922e9 commit e6db935

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1481
-1207
lines changed

llvm/include/llvm/IR/AbstractCallSite.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
#ifndef LLVM_IR_ABSTRACTCALLSITE_H
1515
#define LLVM_IR_ABSTRACTCALLSITE_H
1616

17-
#include "llvm/Support/Compiler.h"
1817
#include "llvm/IR/Constants.h"
1918
#include "llvm/IR/Function.h"
2019
#include "llvm/IR/InstrTypes.h"
2120
#include "llvm/IR/Value.h"
21+
#include "llvm/Support/Compiler.h"
2222
#include <cassert>
2323

2424
namespace llvm {
@@ -103,8 +103,9 @@ class AbstractCallSite {
103103
///
104104
/// All uses added to \p CallbackUses can be used to create abstract call
105105
/// sites for which AbstractCallSite::isCallbackCall() will return true.
106-
LLVM_ABI static void getCallbackUses(const CallBase &CB,
107-
SmallVectorImpl<const Use *> &CallbackUses);
106+
LLVM_ABI static void
107+
getCallbackUses(const CallBase &CB,
108+
SmallVectorImpl<const Use *> &CallbackUses);
108109

109110
/// Conversion operator to conveniently check for a valid/initialized ACS.
110111
explicit operator bool() const { return CB != nullptr; }

llvm/include/llvm/IR/Analysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#ifndef LLVM_IR_ANALYSIS_H
1313
#define LLVM_IR_ANALYSIS_H
1414

15-
#include "llvm/Support/Compiler.h"
1615
#include "llvm/ADT/SmallPtrSet.h"
16+
#include "llvm/Support/Compiler.h"
1717

1818
namespace llvm {
1919

llvm/include/llvm/IR/Argument.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
#ifndef LLVM_IR_ARGUMENT_H
1414
#define LLVM_IR_ARGUMENT_H
1515

16-
#include "llvm/Support/Compiler.h"
1716
#include "llvm/ADT/Twine.h"
1817
#include "llvm/IR/Attributes.h"
1918
#include "llvm/IR/Value.h"
19+
#include "llvm/Support/Compiler.h"
2020
#include <optional>
2121

2222
namespace llvm {
@@ -38,8 +38,8 @@ class Argument final : public Value {
3838

3939
public:
4040
/// Argument constructor.
41-
LLVM_ABI explicit Argument(Type *Ty, const Twine &Name = "", Function *F = nullptr,
42-
unsigned ArgNo = 0);
41+
LLVM_ABI explicit Argument(Type *Ty, const Twine &Name = "",
42+
Function *F = nullptr, unsigned ArgNo = 0);
4343

4444
inline const Function *getParent() const { return Parent; }
4545
inline Function *getParent() { return Parent; }
@@ -108,8 +108,8 @@ class Argument final : public Value {
108108
/// If this is a byval or inalloca argument, return its alignment.
109109
/// FIXME: Remove this function once transition to Align is over.
110110
/// Use getParamAlign() instead.
111-
LLVM_ABI LLVM_DEPRECATED("Use getParamAlign() instead", "getParamAlign")
112-
uint64_t getParamAlignment() const;
111+
LLVM_ABI LLVM_DEPRECATED("Use getParamAlign() instead",
112+
"getParamAlign") uint64_t getParamAlignment() const;
113113

114114
/// If this is a byval or inalloca argument, return its alignment.
115115
LLVM_ABI MaybeAlign getParamAlign() const;

llvm/include/llvm/IR/Assumptions.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
#ifndef LLVM_IR_ASSUMPTIONS_H
1616
#define LLVM_IR_ASSUMPTIONS_H
1717

18-
#include "llvm/Support/Compiler.h"
1918
#include "llvm/ADT/DenseSet.h"
2019
#include "llvm/ADT/StringRef.h"
2120
#include "llvm/ADT/StringSet.h"
21+
#include "llvm/Support/Compiler.h"
2222

2323
namespace llvm {
2424

@@ -51,12 +51,12 @@ struct KnownAssumptionString {
5151

5252
/// Return true if \p F has the assumption \p AssumptionStr attached.
5353
LLVM_ABI bool hasAssumption(const Function &F,
54-
const KnownAssumptionString &AssumptionStr);
54+
const KnownAssumptionString &AssumptionStr);
5555

5656
/// Return true if \p CB or the callee has the assumption \p AssumptionStr
5757
/// attached.
5858
LLVM_ABI bool hasAssumption(const CallBase &CB,
59-
const KnownAssumptionString &AssumptionStr);
59+
const KnownAssumptionString &AssumptionStr);
6060

6161
/// Return the set of all assumptions for the function \p F.
6262
LLVM_ABI DenseSet<StringRef> getAssumptions(const Function &F);
@@ -65,10 +65,12 @@ LLVM_ABI DenseSet<StringRef> getAssumptions(const Function &F);
6565
LLVM_ABI DenseSet<StringRef> getAssumptions(const CallBase &CB);
6666

6767
/// Appends the set of assumptions \p Assumptions to \F.
68-
LLVM_ABI bool addAssumptions(Function &F, const DenseSet<StringRef> &Assumptions);
68+
LLVM_ABI bool addAssumptions(Function &F,
69+
const DenseSet<StringRef> &Assumptions);
6970

7071
/// Appends the set of assumptions \p Assumptions to \CB.
71-
LLVM_ABI bool addAssumptions(CallBase &CB, const DenseSet<StringRef> &Assumptions);
72+
LLVM_ABI bool addAssumptions(CallBase &CB,
73+
const DenseSet<StringRef> &Assumptions);
7274

7375
} // namespace llvm
7476

0 commit comments

Comments
 (0)