[PATCH] D21236: AMDGPU/SI: Correctly encode constant expressions
Artem Tamazov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 10 12:46:28 PDT 2016
artem.tamazov added inline comments.
================
Comment at: lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp:168
@@ +167,3 @@
+ if (MO.isExpr()) {
+ const MCConstantExpr *C = dyn_cast<MCConstantExpr>(MO.getExpr());
+ if (!C)
----------------
BTW, is it possible to use MCExpr::evaluateAsAbsolute() to to get a "constant" (i.e. known during assembly time) value?
http://reviews.llvm.org/D21236
More information about the llvm-commits
mailing list