-
Notifications
You must be signed in to change notification settings - Fork 564
Update to XCode 11. #3375
Update to XCode 11. #3375
Conversation
backend.native/llvm.def
Outdated
@@ -47,6 +60,8 @@ excludedFunctions.mingw = LLVMDumpType | |||
|
|||
excludedFunctions = LLVMInitializeAllAsmParsers LLVMInitializeAllAsmPrinters LLVMInitializeAllDisassemblers \ | |||
LLVMInitializeAllTargetInfos LLVMInitializeAllTargetMCs LLVMInitializeAllTargets LLVMInitializeNativeTarget \ | |||
LLVMInitializeNativeAsmParser LLVMInitializeNativeAsmPrinter LLVMInitializeNativeDisassembler | |||
LLVMInitializeNativeAsmParser LLVMInitializeNativeAsmPrinter LLVMInitializeNativeDisassembler \ | |||
LLVMInitializeNativeAsmParser LLVMInitializeNativeAsmPrinter LLVMInitializeNativeDisassembler \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These ones excluded twice?
runtime/src/main/cpp/Porting.cpp
Outdated
@@ -303,11 +303,12 @@ uint32_t inPages(uint32_t value) { | |||
extern "C" void Konan_notify_memory_grow(); | |||
|
|||
uint32_t memorySize() { | |||
return __builtin_wasm_current_memory(); | |||
// return __builtin_wasm_current_memory(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented code.
runtime/src/main/cpp/Porting.cpp
Outdated
} | ||
|
||
int32_t growMemory(uint32_t delta) { | ||
int32_t oldLength = __builtin_wasm_grow_memory(delta); | ||
int32_t oldLength = __builtin_wasm_memory_grow(0, delta); // __builtin_wasm_grow_memory(delta); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented code.
@@ -297,8 +297,8 @@ internal class Llvm(val context: Context, val llvmModule: LLVMModuleRef) { | |||
} | |||
|
|||
private fun importMemset(): LLVMValueRef { | |||
val parameterTypes = cValuesOf(int8TypePtr, int8Type, int32Type, int32Type, int1Type) | |||
val functionType = LLVMFunctionType(LLVMVoidType(), parameterTypes, 5, 0) | |||
val parameterTypes = cValuesOf(int8TypePtr, int8Type, int32Type, int1Type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
memset was likely changed in llvm/llvm-project@1e68724
The commit message states that alignment should now be specified with an attribute.
We should ensure that proper alignment is applied for our memset
usages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fortunately we pointer align object slots where it's used, so likely not a big problem for us.
@@ -125,6 +124,10 @@ internal inline fun<R> generateFunction(codegen: CodeGenerator, | |||
startLocation, | |||
endLocation, | |||
function), code) | |||
|
|||
// To perform per-function validation. | |||
if (false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely need a handle (CLI flag?) for that. But it can be added in a separate PR.
@@ -173,6 +173,7 @@ open class FrameworkTest : DefaultTask() { | |||
} | |||
|
|||
val args = listOf("--sdk", sdk, "-v", "-t", ldPath, frameworkBinary) | |||
println("would run '$bitcodeBuildTool' with '$args") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover.
On windows: |
|
No description provided.