Wheres /opt/local/dev/swift is downloaded from GitHub
cd /opt/local/dev
git clone https://github.com/apple/swift
Note that while /opt/local/dev holds the source code, /opt/local/<<projectname>> holds a larger project or installation, while /opt/local/bin holds single binaries such as ls