@@ -93,7 +93,8 @@ class ConstantInt : public Constant {
93
93
// / be interpreted as a 64-bit signed integer and sign-extended to fit
94
94
// / the type.
95
95
// / Get a ConstantInt for a specific value.
96
- LLVM_ABI static ConstantInt *get (IntegerType *Ty, uint64_t V, bool IsSigned = false );
96
+ LLVM_ABI static ConstantInt *get (IntegerType *Ty, uint64_t V,
97
+ bool IsSigned = false );
97
98
98
99
// / Return a ConstantInt with the specified value for the specified type. The
99
100
// / value V will be canonicalized to a an unsigned APInt. Accessing it with
@@ -109,7 +110,8 @@ class ConstantInt : public Constant {
109
110
110
111
// / Return a ConstantInt constructed from the string strStart with the given
111
112
// / radix.
112
- LLVM_ABI static ConstantInt *get (IntegerType *Ty, StringRef Str, uint8_t Radix);
113
+ LLVM_ABI static ConstantInt *get (IntegerType *Ty, StringRef Str,
114
+ uint8_t Radix);
113
115
114
116
// / If Ty is a vector type, return a Constant with a splat of the given
115
117
// / value. Otherwise return a ConstantInt for the given value.
@@ -275,11 +277,11 @@ class ConstantFP final : public Constant {
275
277
LLVM_ABI static ConstantFP *get (const APFloat &V, Context &Ctx);
276
278
277
279
LLVM_ABI static Constant *getNaN (Type *Ty, bool Negative = false ,
278
- uint64_t Payload = 0 );
280
+ uint64_t Payload = 0 );
279
281
LLVM_ABI static Constant *getQNaN (Type *Ty, bool Negative = false ,
280
- APInt *Payload = nullptr );
282
+ APInt *Payload = nullptr );
281
283
LLVM_ABI static Constant *getSNaN (Type *Ty, bool Negative = false ,
282
- APInt *Payload = nullptr );
284
+ APInt *Payload = nullptr );
283
285
LLVM_ABI static Constant *getZero (Type *Ty, bool Negative = false );
284
286
285
287
LLVM_ABI static Constant *getNegativeZero (Type *Ty);
@@ -396,8 +398,8 @@ class ConstantStruct final : public ConstantAggregate {
396
398
return get (getTypeForElements (Ctx, V, Packed), V);
397
399
}
398
400
// / This version of the method allows an empty list.
399
- LLVM_ABI static StructType *getTypeForElements (Context &Ctx, ArrayRef<Constant *> V,
400
- bool Packed = false );
401
+ LLVM_ABI static StructType *
402
+ getTypeForElements (Context &Ctx, ArrayRef<Constant *> V, bool Packed = false );
401
403
// / Return an anonymous struct type to use for a constant with the specified
402
404
// / set of elements. The list must not be empty.
403
405
static StructType *getTypeForElements (ArrayRef<Constant *> V,
@@ -1087,16 +1089,16 @@ class GlobalWithNodeAPI : public ParentT {
1087
1089
};
1088
1090
1089
1091
// Explicit instantiations.
1090
- extern template class LLVM_TEMPLATE_ABI GlobalWithNodeAPI<GlobalIFunc, llvm::GlobalIFunc, GlobalObject,
1091
- llvm::GlobalObject>;
1092
- extern template class LLVM_TEMPLATE_ABI GlobalWithNodeAPI<Function, llvm::Function, GlobalObject,
1093
- llvm::GlobalObject>;
1094
- extern template class LLVM_TEMPLATE_ABI GlobalWithNodeAPI<GlobalVariable, llvm::GlobalVariable,
1095
- GlobalObject, llvm::GlobalObject>;
1096
- extern template class LLVM_TEMPLATE_ABI GlobalWithNodeAPI<GlobalAlias, llvm::GlobalAlias, GlobalValue,
1097
- llvm::GlobalValue>;
1098
-
1099
- #if defined(_MSC_VER) && !defined(__clang__)
1092
+ extern template class LLVM_TEMPLATE_ABI GlobalWithNodeAPI<
1093
+ GlobalIFunc, llvm::GlobalIFunc, GlobalObject, llvm::GlobalObject>;
1094
+ extern template class LLVM_TEMPLATE_ABI GlobalWithNodeAPI<
1095
+ Function, llvm::Function, GlobalObject, llvm::GlobalObject>;
1096
+ extern template class LLVM_TEMPLATE_ABI GlobalWithNodeAPI<
1097
+ GlobalVariable, llvm::GlobalVariable, GlobalObject, llvm::GlobalObject>;
1098
+ extern template class LLVM_TEMPLATE_ABI GlobalWithNodeAPI<
1099
+ GlobalAlias, llvm::GlobalAlias, GlobalValue, llvm::GlobalValue>;
1100
+
1101
+ #if defined(_MSC_VER) && !defined(__clang__)
1100
1102
// These are needed for SandboxIRTest when building with LLVM_BUILD_LLVM_DYLIB
1101
1103
extern template LLVM_TEMPLATE_ABI GlobalIFunc &
1102
1104
GlobalWithNodeAPI<GlobalIFunc, llvm::GlobalIFunc, GlobalObject,
@@ -1396,7 +1398,7 @@ class ConstantPtrAuth final : public Constant {
1396
1398
public:
1397
1399
// / Return a pointer signed with the specified parameters.
1398
1400
LLVM_ABI static ConstantPtrAuth *get (Constant *Ptr, ConstantInt *Key,
1399
- ConstantInt *Disc, Constant *AddrDisc);
1401
+ ConstantInt *Disc, Constant *AddrDisc);
1400
1402
// / The pointer that is signed in this ptrauth signed pointer.
1401
1403
LLVM_ABI Constant *getPointer () const ;
1402
1404
0 commit comments