[PATCH] D105414: Add x86 and x86_64 to the BareMetal toolchain

2021-07-04 Thread Alejandro G. Vallejo via Phabricator via cfe-commits
agvallejo created this revision. Herald added subscribers: pengfei, s.egerton, abidh, simoncook. agvallejo requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. x86_64-unknown-elf should provide an freestanding environment usable in kernel develo

[PATCH] D105414: Add x86 and x86_64 to the BareMetal toolchain

2021-07-04 Thread Alejandro G. Vallejo via Phabricator via cfe-commits
agvallejo added a comment. I'm still testing this patch, but so far it seems to do the trick. I'm able to compile with clang, link with lld and the resulting ELF file appears to be correctly free from host dependencies. The command lines (seen with clang -v) don't throw the host include paths,

[PATCH] D105414: Add x86 and x86_64 to the BareMetal toolchain

2021-07-07 Thread Alejandro G. Vallejo via Phabricator via cfe-commits
agvallejo updated this revision to Diff 357070. agvallejo added a comment. Fulfill merge requirements -Fixed clang-format complaint -Added CLI processing tests for i686 and x86_64 (freestanding+nostdlib only) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.

[PATCH] D105414: Add x86 and x86_64 to the BareMetal toolchain

2021-07-07 Thread Alejandro G. Vallejo via Phabricator via cfe-commits
agvallejo added a reviewer: abidh. agvallejo added a comment. Herald added a subscriber: ki.stfu. It took me a while to get the gist of FileCheck, but it finally clicked. @abidh: Thanks for the pointer! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/