LLVMSwift
LLVMSwift copied to clipboard
A Swift wrapper for the LLVM C API (version 11.0)
All of the `buildXXXType` methods in `DIBuilder` use the size of a pointer as a radix: ```swift let radix = UInt32(self.module.dataLayout.intPointerType().width) ... /* size = */ size.valueInBits(radix: UInt64(radix)) /* alignment...
I have a Xcode 12.2 project where I would like to use LLVMSwift. I installed LLVM 9 with brew and followed Installation instructions. I then added LLVMSwift to my project...
Apparently the JIT API has changed completely, I haven't fixed it here yet. Also, a few tests are broken for some IR attributes.
It appears the API of `free` has changed with Swift 5.5, and the function does no longer accepts an optional pointer. This pull request only force-unwrap the result of `strdup`...
Trying to build to iOS with LLVMSwift included and I hit the error `'shared_timed_mutex' is unavailable: introduced in iOS 10.0`. I assume iOS isn't supported by LLVMSwift but it does...
[0001-Fix-Ubuntu.patch.txt](https://github.com/llvm-swift/LLVMSwift/files/6396890/0001-Fix-Ubuntu.patch.txt)
This is a formatted list of APIs we do not yet wrap. ## Optimization Passes - [ ] LLVMAddAnalysisPasses - [ ] LLVMAddInternalizePass - [ ] LLVMAddLoopVectorizePass - [ ]...
This is a formatted list of APIs that cannot be wrapped or have been wrapped incorrectly in LLVM-C. There is necessarily overlap between this and #51. ## API - Everything...
### Types - [ ] `DWARFTypeEncoding` - [ ] `DWARFTypeQualifier` - [x] `LLVMDIFlags` - [ ] `LLVMMachineInfoRecordType` ### DIBuilder - [ ] LLVMDIBuilderFinalizeSubprogam - [ ] LLVMDIBuilderRetainType ### General Metadata...
All other steps seem to work fine but linking fails. All steps from instructions were followed. Here's snippet of linker error: Undefined symbols for architecture arm64: "std::__1::basic_stringbuf::str() const", referenced from:...