[PATCH] Attach readonly and readnone attributes to inline-asm instructions
Akira Hatanaka
ahatanak at gmail.com
Tue Jun 23 19:17:24 PDT 2015
- Previous message: [PATCH] [X86, inlineasm] Implement v, k, Y2, Yk, Yz constraints, improve analysis for x, Y*, L, e, Z, s
- Next message: [PATCH] Consolidate and unify initializer list deduction
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Made changes to the previous patch to stop attaching readonly or readnone in the following cases:
1. The inline-asm has no output operands. In this case, it is implicitly volatile.
2. The inline-asm returns a value by-reference instead of by-value. The previous patch wasn't catching the case where a "=r" constraint resulted in a value being returned by-reference.
Also, fixed the test case to catch those two cases.
http://reviews.llvm.org/D10546
Files:
lib/CodeGen/CGStmt.cpp
test/CodeGen/asm-attrs.c
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10546.28317.patch
Type: text/x-patch
Size: 3637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150624/2c2e69f7/attachment.bin>
- Previous message: [PATCH] [X86, inlineasm] Implement v, k, Y2, Yk, Yz constraints, improve analysis for x, Y*, L, e, Z, s
- Next message: [PATCH] Consolidate and unify initializer list deduction
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cfe-commits
mailing list