llvm.org GIT mirror llvm / f23126d
[AVR] Document some public functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337122 91177308-0d34-0410-b5e6-96231b3b80d8 Dylan McKay 2 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3636 /// Contains the AVR backend.
3737 namespace AVR {
3838
39 /// An integer that identifies all of the supported AVR address spaces.
3940 enum AddressSpace { DataMemory, ProgramMemory };
4041
42 /// Checks if a given type is a pointer to program memory.
4143 template bool isProgramMemoryAddress(T *V) {
4244 return cast(V->getType())->getAddressSpace() == ProgramMemory;
4345 }