Displaying 2 results from an estimated 2 matches for "checkarchvalid".
2016 May 09
2
LLVM issuse:AArch64 TargetParser
...ons I mentioned above,I wrote a check function as below, basing
on the naming rules of the arm architecture.
+//Only if -march startwith "armv" or "v" or "iwmmxt" or "xscale",it can be
seen valid and sended to TargetParser
+//for further parsing
+static bool checkArchValid(StringRef Arch)
+{
+ if ((Arch.startswith("armv")) || Arch[0] == 'v' ||
+ (Arch.startswith("iwmmxt")) || (Arch.startswith("xscale")))
+ return true;
+ return false;
+}
I just do a simple check in clang.As the TargetParser will parse it in
detail,i...
2016 May 05
2
LLVM issuse:AArch64 TargetParser
On 5 May 2016 at 13:01, Bradley Smith <Bradley.Smith at arm.com> wrote:
> Allowing -march=aarch64/arm64 is somewhat misleading I think, -march is used
> for specifying an architecture version to target whereas aarch64/arm64 don’t
> convey any information to that effect, does it mean armv8a, armv8.1-a, etc?
Hi Bradley,
That's a good point. But also, what does "armv8a"