[polly] r303052 - [NFC] [Fortran Support] Fix findFADGlobalNonAlloc pattern match comment
Siddharth Bhat via llvm-commits
llvm-commits at lists.llvm.org
Mon May 15 04:49:20 PDT 2017
Author: bollu
Date: Mon May 15 06:49:19 2017
New Revision: 303052
URL: http://llvm.org/viewvc/llvm-project?rev=303052&view=rev
Log:
[NFC] [Fortran Support] Fix findFADGlobalNonAlloc pattern match comment
Modified:
polly/trunk/include/polly/ScopBuilder.h
Modified: polly/trunk/include/polly/ScopBuilder.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopBuilder.h?rev=303052&r1=303051&r2=303052&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopBuilder.h (original)
+++ polly/trunk/include/polly/ScopBuilder.h Mon May 15 06:49:19 2017
@@ -83,18 +83,20 @@ class ScopBuilder {
Value *findFADGlobalAlloc(MemAccInst Inst);
/// Try to match for the descriptor of a Fortran Array that has been declared
- /// global, and is being accessed across modules.
+ /// global, has not been allocated, and is being allocated here.
///
/// Pattern match for "@globaldescriptor":
- /// 1. %mem = load double*, double** bitcast (%"struct.array1_real(kind=8)"*
- /// @globaldescriptor to double**), align 32
+ /// 1. %untypedmem = i8* @malloc(...)
///
- /// 2. [%slot = getelementptr inbounds i8, i8* %mem, i64 <index>]
- /// 2 is optional because if you are writing to the 0th index, you don't
+ /// 2. %typedmem = bitcast i8* %untypedmem to <memtype>*
+ ///
+ /// 3. [%slot = getelementptr inbounds
+ /// <memtype>, <memtype>* %typedmem, i64 <index>]
+ /// 3 is optional because if you are writing to the 0th index, you don't
/// need a GEP.
///
- /// 3.1 store/load <memtype> <val>, <memtype>* %slot, align 8
- /// 3.2 store/load <memtype> <val>, <memtype>* %mem, align 8
+ /// 4.1 store/load <memtype> <val>, <memtype>* %slot, align 8
+ /// 4.2 store/load <memtype> <val>, <memtype>* %mem, align 8
///
/// @see polly::MemoryAccess, polly::ScopArrayInfo
///
More information about the llvm-commits
mailing list