Skip to content

Commit 1c3523c

Browse files
committed
Remove: Value constant expressions
1 parent 03b1e5f commit 1c3523c

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

.github/workflows/swift.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ jobs:
2626
echo 'export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"' >> /Users/runner/.bash_profile
2727
source /Users/runner/.bash_profile
2828
clang --version
29-
cat /Users/runner/.bash_profile
30-
whereis llc
31-
echo "=====> Checking LLC"
32-
llc --version
3329
swift --version
3430
swift utils/make-pkg-config.swift
3531

llvm-api/LLVM/Core/Values/Constants/Expressions.swift

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import CLLVM
22

3+
/*
34
/// Functions in this group correspond to APIs on `ConstantExpressions` .
45
public enum ConstantExpressions {
56
public static func getConstOpcode(constantVal: ValueRef) -> Opcode {
@@ -191,10 +192,10 @@ public enum ConstantExpressions {
191192
return Value(llvm: valueRef)
192193
}
193194

194-
public func constFPToSI(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
195-
let valueRef = LLVMConstFPToSI(constantVal.valueRef, toType.typeRef)!
196-
return Value(llvm: valueRef)
197-
}
195+
// public func constFPToSI(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
196+
// let valueRef = LLVMConstFPToSI(constantVal.valueRef, toType.typeRef)!
197+
// return Value(llvm: valueRef)
198+
// }
198199

199200
public func constPtrToInt(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
200201
let valueRef = LLVMConstPtrToInt(constantVal.valueRef, toType.typeRef)!
@@ -216,10 +217,10 @@ public enum ConstantExpressions {
216217
return Value(llvm: valueRef)
217218
}
218219

219-
public func constZExtOrBitCast(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
220-
let valueRef = LLVMConstZExtOrBitCast(constantVal.valueRef, toType.typeRef)!
221-
return Value(llvm: valueRef)
222-
}
220+
// public func constZExtOrBitCast(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
221+
// let valueRef = LLVMConstZExtOrBitCast(constantVal.valueRef, toType.typeRef)!
222+
// return Value(llvm: valueRef)
223+
// }
223224

224225
public func constSExtOrBitCast(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
225226
let valueRef = LLVMConstSExtOrBitCast(constantVal.valueRef, toType.typeRef)!
@@ -236,15 +237,15 @@ public enum ConstantExpressions {
236237
return Value(llvm: valueRef)
237238
}
238239

239-
public func constIntCast(_ constantVal: ValueRef, _ toType: TypeRef, _ isSigned: Bool) -> Value {
240-
let valueRef = LLVMConstIntCast(constantVal.valueRef, toType.typeRef, isSigned.llvm)!
241-
return Value(llvm: valueRef)
242-
}
240+
// public func constIntCast(_ constantVal: ValueRef, _ toType: TypeRef, _ isSigned: Bool) -> Value {
241+
// let valueRef = LLVMConstIntCast(constantVal.valueRef, toType.typeRef, isSigned.llvm)!
242+
// return Value(llvm: valueRef)
243+
// }
243244

244-
public func constFPCast(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
245-
let valueRef = LLVMConstFPCast(constantVal.valueRef, toType.typeRef)!
246-
return Value(llvm: valueRef)
247-
}
245+
// public func constFPCast(_ constantVal: ValueRef, _ toType: TypeRef) -> Value {
246+
// let valueRef = LLVMConstFPCast(constantVal.valueRef, toType.typeRef)!
247+
// return Value(llvm: valueRef)
248+
// }
248249

249250
public func constExtractElement(_ vectorConstant: ValueRef, _ indexConstant: ValueRef) -> Value {
250251
let valueRef = LLVMConstExtractElement(vectorConstant.valueRef, indexConstant.valueRef)!
@@ -276,3 +277,5 @@ public enum ConstantExpressions {
276277
return Value(llvm: valueRef)
277278
}
278279
}
280+
*/
281+

0 commit comments

Comments
 (0)