Displaying 5 results from an estimated 5 matches for "defaulttargettriple".
2016 Jan 03
2
Diff to add ARMv6L to Target parser
...I’ve been working with Swift on ARMv6 and v7. While working with ARMv6 on linux, I noticed that my arm architecture canonicalization code didn’t produce the expected result. The code that I had been using (within Swift’s Driver.cpp the following:
static llvm::Triple computeTargetTriple(StringRef DefaultTargetTriple) {
llvm::Triple triple = llvm::Triple(DefaultTargetTriple);
// Canonicalization of all armv6 sub architectures to armv6
if (triple.getArch() == llvm::Triple::ArchType::arm) {
if (triple.getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v6 ||
triple.getSubArch() == llvm::Trip...
2016 Jan 04
2
Diff to add ARMv6L to Target parser
>> However, because the DefaultTargetTriple is armv6l-unknown-linux-gnueabihf,
>> and llvm didn’t know about v6l, it would fail to match and canonicalize to armv6.
>> I added the notion of v6l to llvm to address this.
>
> ARMv6l was definitely there once. I'm not sure what happened.
>
> I'm copying the ARM fo...
2016 Jan 04
4
Diff to add ARMv6L to Target parser
...ess, I'll leave you guys to review this one, as I lost touch with the parser a while ago.
Ah, I see: ARMv7L is now an alias for ARMv7A.
So, if William has to add support for ARMv6L, I'd suggest he adds it as an alias, and not as an architecture variant.
>>> However, because the DefaultTargetTriple is armv6l-unknown-linux-gnueabihf
Where is this "armv6l" coming from? Is it a legacy GNU thing? Or is it a newly-coined name?
2013 Aug 22
0
[LLVMdev] [RFC PATCH] X32 ABI support for Clang/compiler-rt (Clang patch)
..."], "mabi=">, Group<m_Group>;
def march_EQ : Joined<["-"], "march=">, Group<m_Group>;
--- ./tools/clang/lib/Driver/Driver.cpp.orig
+++ ./tools/clang/lib/Driver/Driver.cpp
@@ -1700,6 +1700,9 @@ static llvm::Triple computeTargetTriple(StringRef
DefaultTargetTriple,
if (Target.getArch() == llvm::Triple::ppc)
Target.setArch(llvm::Triple::ppc64);
}
+ } else if (Args.getLastArg(options::OPT_mx32)) {
+ if (Target.getArch() == llvm::Triple::x86_64)
+ Target.setEnvironment(llvm::Triple::GNUX32);
}
return Target;
--- ./tools/cla...
2013 Aug 22
7
[LLVMdev] [RFC PATCH] X32 ABI support for Clang/compiler-rt
Hi,
I'm working on bringing up complete coverage for a Gentoo x32 "desktop"
system. I've been cooking up quite a few patches for various packages
to push upstream, but right now, the biggest blocker is the lack of
support for building with/codegen targeting x32 in llvm/clang. Since
the x32 patches were sent last year, I see support code has landed in
LLVM, and basic handling of