[PATCH] Use ".arch_extension" ARM directive to support hwdiv

Renato Golin renato.golin at linaro.org
Tue Feb 24 13:46:05 PST 2015


================
Comment at: lib/Target/ARM/ARMAsmPrinter.cpp:709
@@ +708,3 @@
+  if (STI.isKrait() && (STI.hasDivide() || STI.hasDivideInARMMode()))
+    ATS.emitArchExtension("idiv");
+
----------------
I was looking around and emitting plain text of a hardcoded value here would be a bad idea.

I think you need to create/append an enum and do like FPU/CPU/ARCH.

http://reviews.llvm.org/D7819

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list